lexical
lexical copied to clipboard
Bug: CJK composition broken in android firefox
Lexical version: the version in lexical playground (the playground does not show what version it uses)
Steps To Reproduce
- install android firefox
- go to https://playground.lexical.dev
- with android's default keyboard, type CJK letters (korean) that is composable (e.g 안녕하세요)
Link to code example:
reproducible in https://playground.lexical.dev
https://github.com/facebook/lexical/assets/54838975/5a8e7ef5-f0d5-4599-aca3-f47239fe5b91
https://github.com/facebook/lexical/assets/54838975/cff843f0-3da6-47a2-b608-077ce5cce897
The current behavior
composable words (e.g 안) are not correctly composed (e.g ㅇㅏㄴ).
The expected behavior
they are composed correctly. on android chrome and mac firefox, lexical worked correctly.
Impact of fix
- it is almost guaranteed to happen when typing fast.
- this prevents CJK users using android firefox from typing text in lexical.
- in rough estimation, around 6000000 users might be affected. ((china: 1.4 billion, japan: ~120 million, korea: ~51 million) * android users (72%) * firefox user (0.53%) = 5994936)