Skip to content

Weird behavior when typing #86

@yojona

Description

@yojona

When I write on a line that is not the last, after writing 1 character, it takes me to the next line, I want to continue writing on the same line.

GIF:
ezgif com-gif-maker (1)

I noticed that it only happens when I set the state with OnChange, if it uses its internal state it works fine.

Replicate:

  1. Go to: https://codesandbox.io/s/epic-bardeen-xn8g7?file=/src/App.js
  2. Write in the first line "top"
  3. Create 2 new lines below
  4. Go to the last line, write "bottom"
  5. Click on the middle line or the first one, try to continue writing there. It will take you to the next line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions