You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
Do you want to request a feature or report a bug?
a bug
What is the current behavior?
Entering text that triggers auto-correct and then deleting it leaves things in a weird state.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/stopachka/m6z0xn4r/.
You can reproduce this on Android 5.0 on the 'try draft' demo page.
enter 'aaa' and then hit 'space'. Notice autocorrect will change it to something.
delete all those characters. Notice it deletes it all at once and unfocuses the editor.
enter 'bbb' and hit 'space'. Notice the previously deleted characters reappear.
Disabling 'autocorrect' and 'spellcheck' in android 5.0 chrome either doesn't work or doesn't fix this bug.
What is the expected behavior?
Characters should be gone forever if we delete them, unless we 'undo'.
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
Draft 0.9.1
Draft 0.10.0
Android 5.0 chrome
(thankfullly not Androit 6.0 or 7.0 I don't think)