Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

auto-correct creates bad state in Android 5.0 #1010

@flarnie

Description

@flarnie

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.

  1. enter 'aaa' and then hit 'space'. Notice autocorrect will change it to something.
  2. delete all those characters. Notice it deletes it all at once and unfocuses the editor.
  3. 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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions