Closed vasilii-kovalev closed 3 years ago
Cursor jumps to the very beginning of the editor on pasting a copied string.
Before pasting: After pasting:
Reproduced both in markup and query editors.
Ctrl + V
Cursor is placed right after the last pasted character
Maybe it can help: https://egghead.io/lessons/react-preserve-cursor-position-when-filtering-out-characters-from-a-react-input
P.S.: It seems the link from the bug report template (https://develop.testing-playground.com/) doesn't work.
Thanks for the report @vasilii-kovalev. Both issues should now have been fixed.
Bug Report 🐛
Cursor jumps to the very beginning of the editor on pasting a copied string.
Before pasting: After pasting:
Reproduced both in markup and query editors.
To Reproduce ✔️
Ctrl + V
or context menu.Expected behavior 🤔
Cursor is placed right after the last pasted character
Suggested solution 🔦
Maybe it can help: https://egghead.io/lessons/react-preserve-cursor-position-when-filtering-out-characters-from-a-react-input
Your Environment 💻