react-draft-wysiwyg icon indicating copy to clipboard operation
react-draft-wysiwyg copied to clipboard

When I type any word on mobile and press space or enter deletes all the text just wrote

Open hackhat opened this issue 7 years ago • 6 comments

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.

hackhat avatar Jun 21 '17 14:06 hackhat

I am seeing the exact same issue.

cveilleux avatar Nov 29 '17 13:11 cveilleux

I see this error too, We are running production website and get complains about it. Can you please look at the issue?

utopia2050 avatar Mar 15 '18 13:03 utopia2050

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

kwarr128 avatar Mar 15 '18 14:03 kwarr128

Same issue here

alan345 avatar Feb 03 '19 15:02 alan345

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

jpuri avatar Feb 09 '19 09:02 jpuri

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

Noushad-web avatar Aug 21 '22 16:08 Noushad-web