Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GermanJablo opened this issue Sep 13, 2024 · 0 comments

Comments

@GermanJablo
Copy link
Contributor

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 payloadcms/payload#8047

@GermanJablo GermanJablo changed the title Bug: Selection does not update to null when selected inside a DecoratorNode Bug: Selection is not updated when something is selected inside a DecoratorNode Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant