draft-js icon indicating copy to clipboard operation
draft-js copied to clipboard

[iOS] editor loses focus when text composition ends

Open walter0331 opened this issue 10 years ago • 4 comments

The editor loses focus when I'm typing in Chinese on my iOS device.

Here is the demo draft_composition_bug

condition 1: typing the first word in a new block

  1. start typing
  2. composition starts
  3. select the word (or press the confirm button on the bottom right of the keyboard )
  4. composition ends
  5. text editor loses focus

condition 2

  1. start typing
  2. composition starts
  3. delete everything
  4. composition ends
  5. text editor loses focus

versions ios9 draft-js v0.8.1

walter0331 avatar Sep 01 '16 04:09 walter0331

related https://github.com/facebook/draft-js/issues/544

walter0331 avatar Sep 01 '16 04:09 walter0331

Support for ios and android is definitely a pre-requisite for a v1 launch.

If you or anyone has time to take a stab at it, PRs are welcome

stopachka avatar Sep 03 '16 00:09 stopachka

Try merging https://github.com/facebook/draft-js/pull/572 - it should fix this issue.

butchmarshall avatar Oct 04 '16 20:10 butchmarshall

Is this still an issue on master? If it still is, any chance you can try this out on https://3ymzzlj9n5.codesandbox.io/ ? This codesandbox contains a version of draft-js that has this PR applied to it. That PR works on fixing composition events, which are heavily used on Android, and is used on languages like Japanese Kana and Chinese.

fabiomcosta avatar Mar 18 '19 19:03 fabiomcosta