Skip to content

Cursor jumps to the very beginning of the editor on pasting a copied string #297

@vasilii-kovalev

Description

@vasilii-kovalev

Bug Report 🐛

Cursor jumps to the very beginning of the editor on pasting a copied string.

Before pasting:
image
After pasting:
image

Reproduced both in markup and query editors.

To Reproduce ✔️

  1. Copy any string from somewhere
  2. Go to the site
  3. Paste the string to markup or query editor via 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 💻

  • browser: Chrome 86.0.4240.198
  • os: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions