-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Bug: Text format lost after auto-correcting on iOS #4801
Copy link
Copy link
Closed
Labels
Description
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
- On a lexical editor type a word with formatting applied
- Make sure it is a misspelled word so the native keyboard prompts you to correct it
- Tap on the native keyboard suggestion and the word will be corrected but the formats are lost
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
Reactions are currently unavailable