You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Emoji/mentions picker opens and allows insertion/modification of nodes
The expected behavior
No picker should be present, or at least no emoji/mention should be insertable
Impact of fix
Ensure true compliance of "read only" mode
The text was updated successfully, but these errors were encountered:
RobHannay
changed the title
Bug: Possible to insert emoji in read-only mode in Playground
Bug: Typeahead menu does not respect read-only mode
Feb 10, 2025
- Add read-only mode check before showing typeahead menu
- Add editable state listener to close menu when editor becomes read-only
- Ensures emoji/mentions picker respects editor's read-only state
Fixesfacebook#7160
Lexical version: Assumed 0.24.0 from package here
The common theme appears to be the
LexicalTypeaheadMenuPlugin
componentSteps To Reproduce
Emoji example:
Same for
@-mentions
.Link to code example:
Screen.Recording.2025-02-10.at.14.20.43.mov
Screen.Recording.2025-02-10.at.14.17.08.mov
https://playground.lexical.dev/
The current behavior
Emoji/mentions picker opens and allows insertion/modification of nodes
The expected behavior
No picker should be present, or at least no emoji/mention should be insertable
Impact of fix
Ensure true compliance of "read only" mode
The text was updated successfully, but these errors were encountered: