react-draft-wysiwyg
react-draft-wysiwyg copied to clipboard
When I type any word on mobile and press space or enter deletes all the text just wrote
Note: this only happens with the google keyboard on android and not with samsung keyboard for example.
How to reproduce:
- Open editor on an android device with google keyboard (autocomplete helper);
- Type something like: "hello"
- Press enter or space;
Result:
Deletes the text.
What should happen:
Should keep the text and add the space or the new line.
Reasons
I think that google keyboard (gboard) is doing something with the text like autocomplete or similar.
I am seeing the exact same issue.
I see this error too, We are running production website and get complains about it. Can you please look at the issue?
this is an existing draftjs issue https://github.com/facebook/draft-js/issues/1077
draftjs actually does not officially support mobile yet, see https://draftjs.org/docs/advanced-topics-issues-and-pitfalls.html#mobile-not-yet-supported
Same issue here
This is issue with the underlying lib draftjs, it does not have good mobile support. You may want to check this another lib of mine with mobile support: https://github.com/jpuri/Nib
I'm facing the same issue in my android and ios devices. I read the draft.js documentation. They don't have fully mobile support yet - https://draftjs.org/docs/advanced-topics-issues-and-pitfalls#mobile-not-yet-supported