Cursor in description textarea when trying to edit text it jumps to the end of text
See original GitHub issueDescribe the bug
In the netlify-cms admin provided by netlify under the /admin
url when adding a new post/blog/entry and type text in the “description” textarea the cursor always goes to the last caracter. So if you try to edit some text in the middle of the curpus after you type the first letter the cursor jumps right into the end of the text.
To Reproduce
- Go to your
/admin
site - New Entry
- Go to Description textarea, either rich text or markdown
- Type some text
- Move your cursor to any previously typed text
- Type anything
- The cursor goes to the end of text instead of staying where it should
Expected behavior
- The user should be able to edit previously typed text
Screenshots
https://user-images.githubusercontent.com/417939/190650484-232a74cb-90e2-48cf-af38-0eed2fca42fd.mov
Applicable Versions:
- Netlify CMS APP: 2.15.52
- Netlify CMS Core: 2.51.1
- OS: MacOS: 12.5
- Browser version: Chrome 105
Issue Analytics
- State:
- Created a year ago
- Reactions:6
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Issue with cursor jumping to last line on editing textArea
In textarea if you update the value, the cursor will be moved to the end. If you want to maintain the cursor position...
Read more >Cursor jumps to the end while typing in a text input box
Hi power apps experts, I have been experiencing a strange and irritating issue with my app. I have a simple textinput box.
Read more >Cursor jumps to end of editorComponent `text` field in v2.10.97
Move pointer to anywhere but the end of the text field input. Try to type. After one character, the cursor jumps to the...
Read more >Editing text fields causes cursor jump to end of line
I'm experiencing a small annoying problem when I edit a text field (somewhere in the middle of the text) the text cursor (or...
Read more >Possible fix of cursor jumping at the end of the input field
A possible fix is to save and restore the position of the cursor (aka caret) while updating the input field with something like...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This workaround solved the issue for me:
https://github.com/netlify/netlify-cms/issues/5092#issuecomment-1246525269
Turned up to note the same issue. Extremely annoying and, while it can be worked around, makes the field practically unusable.