Skip to content

Pasting a new line causes incorrect cursor movement #409

Description

@zhzz

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Code Sandbox link

No response

Bug report

Hi,

There is a strange behavior in the current 4.18.0 version. It is easily reproducible on the docs website:

  1. Copy a piece of code with a new line in it
  2. Paste it somewhere in the editor several times in a row
  3. See the cursor moves forward and breaks the code eventually
React-Live-React-Live.webm

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions