Skip to content

Undo via CMD+Z makes the cursor jump to the end of the text #38

@flekschas

Description

@flekschas

Current behaviour

Undo via CMD+Z makes the cursor jump to the end of the text.

issue

☝️Focus on the cursor

Expected behaviour

Like normal textarea elements an undo action should move the cursor to the previous position.

normal

☝️Focus on the cursor

Code sample

For the react-simple-code-editor textarea: http://satya164.xyz/react-simple-code-editor/
For a plain-old textarea: https://flekschas.github.io/textbox/

What have you tried

  1. type in text
  2. hit CMD+Z

Your Environment

software version
react-simple-code-editor v0.9.10 and whatever runs on http://satya164.xyz/react-simple-code-editor/
react no idea, check http://satya164.xyz/react-simple-code-editor/
npm or yarn not used
node not used
browser Chrome v75

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions