Draft-js: Android: text disappears when splitting a block

Created on 24 May 2019  路  5Comments  路  Source: facebook/draft-js

To reproduce:

  • Use the latest version of Draft (i.e., one that includes https://github.com/facebook/draft-js/commit/634bd297f1646934087051b1149164b01a09a136)
  • On a recent Android phone with GBoard, open the rich text example (I'm using a Pixel 2 API 28 with Android 9.0 emulator)
  • Type a paragraph with a few words
  • Tap somewhere in the middle of the paragraph (but not before a space) and press the enter key on the keyboard, so that the paragraph is split in two parts
  • Note that GBoard has a few suggestions for autocomplete. Select the first one.

Result: the text in the second paragraph disappears.

Continuing this scenario:

  • Press backspace

Result: the text in the second paragraph reappears, without the final character.

screencast 2019-05-24 16-49-05

android bug

Most helpful comment

Interesting, feel free to mention me as you did on the other reports, I'll be able to help quicker.
I'm leaving now, but I'll see if I can take a stab at this in the next couple days.

All 5 comments

Interesting, feel free to mention me as you did on the other reports, I'll be able to help quicker.
I'm leaving now, but I'll see if I can take a stab at this in the next couple days.

Any updates?

What are the updates on this issue? Any workarounds?

@fabiomcosta I am also experiencing this same bug while pressing space or backspace

@fabiomcosta @robbertbrak
So its been a year since the bug was reported. Does anyone found any workarounds or fixes for the bug?
I'm facing the same bug.

Was this page helpful?
0 / 5 - 0 ratings