lexical icon indicating copy to clipboard operation
lexical copied to clipboard

Bug: during "IME" in Android Chrome, content is consolidated at the node's boundary

Open dbstpwlsWork32 opened this issue 1 year ago • 3 comments

Lexical version: 0.16.0

Steps To Reproduce

user agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36

https://github.com/facebook/lexical/assets/40158734/2945f4f9-c275-4a82-84f6-0459d9ad2a5d

  1. Move selection to end of paragraph on node's boundary
  2. dispatch "IME" event after a period of time

https://github.com/facebook/lexical/assets/40158734/b591f7eb-e078-4b74-b028-54e19bf7a9d2

  1. move selection to node's boundary
  2. "IME" event fire

The above bug does not occur on PC.

Link to code example: lexical playground

The expected behavior

If "IME" occurs at a node boundary with certain conditions, it seems to merge the content of the previous node.

Impact of fix

This bug affects most countries where the "composition event" occurs.

dbstpwlsWork32 avatar Jun 30 '24 18:06 dbstpwlsWork32

Hey guys, any update?

lovepsm94 avatar Aug 09 '24 08:08 lovepsm94

any update on this issue? it's happening on inline code as well.

somangoi avatar Oct 23 '24 16:10 somangoi

There aren't currently any IME experts actively contributing to Lexical. If this is impacting you, I would highly recommend investigating it yourself and submitting a PR to fix it

etrepum avatar Oct 23 '24 18:10 etrepum