-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Text format lost after auto-correcting on iOS #4801
Comments
Hi, |
Yes we also experience this issue on iOS version 0.12.2. Did anyone find a fix yet? |
@acywatson I don't think this is an issue with composition. From what I can tell, the trace looks something like this: Maybe the inserted nodes should be given the format of the current selection? 🤔 |
This issue also doesn't happen if we ignore the So one possible fix might be to have the Created a PR with this approach. |
On an IOS device, if the user typed a misspelled word with formats like Bold or Italic, after clicking the autocorrected work on the native keyboard, it replaces the word with the correct one but the formats are lost.
Example from lexical playground website and an IOS simulator (note: it also happens on physical devices)
Lexical version: 0.11.2
Steps To Reproduce
Link to code example: It happens in the playground https://github.com/facebook/lexical/tree/main/packages/lexical-playground (see above screen record)
The current behavior
After autocorrecting a word on IOS the text formats are lost
The expected behavior
After autocorrecting a word on IOS the text formats should be kept
The text was updated successfully, but these errors were encountered: