lexical
lexical copied to clipboard
Bug: Selection is not updated when something is selected inside a DecoratorNode
Lexical version: 0.17.1
Related to #6622, although this one is probably easier to fix as it doesn't conflict with elements like dialogue or modals.
Steps To Reproduce
- In https://playground.lexical.dev/ create a PollNode
- select something outside the PollNode and then inside.
The current behavior
The selection is not updated
The expected behavior
The selection is updated
Impact of fix
This leads to undesired behavior. For example, cmd A + cmd X inside a decoratorNode removes all content from the editor without any visible selection. See https://github.com/payloadcms/payload/issues/8047