-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Bug: Typeahead menu does not respect read-only mode #7160
Copy link
Copy link
Closed
Labels
Description
Lexical version: Assumed 0.24.0 from package here
The common theme appears to be the LexicalTypeaheadMenuPlugin component
Steps To Reproduce
Emoji example:
- Open Lexical Playground example at https://playground.lexical.dev/
- Ensure there's a colon with a space before it
- Set playground to read-only mode
- Focus cursor after colon
- Choose an emoji from the list
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
Reactions are currently unavailable