question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cursor in description textarea when trying to edit text it jumps to the end of text

See original GitHub issue

Describe 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
Screen Shot 2022-09-16 at 7 32 58

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:6
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
fymmotcommented, Sep 29, 2022
2reactions
wing5wongcommented, Sep 18, 2022

Turned up to note the same issue. Extremely annoying and, while it can be worked around, makes the field practically unusable.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found