lexical icon indicating copy to clipboard operation
lexical copied to clipboard

Bug: Selection is not updated when something is selected inside a DecoratorNode

Open GermanJablo opened this issue 1 year ago • 0 comments

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

  1. In https://playground.lexical.dev/ create a PollNode
  2. 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

GermanJablo avatar Sep 13 '24 19:09 GermanJablo