facebookarchive / draft-js

A React framework for building text editors.
https://draftjs.org/
MIT License
22.56k stars 2.64k forks source link

Firefox and Edge cursor overflow #1430

Open sarzijan opened 6 years ago

sarzijan commented 6 years ago

Steps to reproduce:

put some text to draft js editor (use example) click behind the last character on some line keep pressing the space bar

issue: the cursor overflow (check image) and characters are still counted in counter image

expected: spaces should come to new line

chrome working well

regards Jan

thibaudcolas commented 6 years ago

Strange bug!

Trying this in Safari 11 (macOS 10.13) produces yet another buggy behavior, where the spaces are registered even though the cursor does not move outside of its container:

Here is a GIF, pressing space many times then lots of backspace:

draftjs-space-cursor