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

richtext-lexical: cmd+A within a block sub-field selection is incorrect #8047

Closed
AlessioGr opened this issue Sep 3, 2024 · 2 comments
Closed
Assignees
Labels
created-by: Payload team dependency-issue The issue is in a dependency of payload - not payload itself plugin: richtext-lexical @payloadcms/richtext-lexical

Comments

@AlessioGr
Copy link
Member

AlessioGr commented Sep 3, 2024

CleanShot.2024-09-03.at.14.45.45.mp4
  1. create a lexical block with a text sub-field
  2. Type in that text field
  3. press CMD+A and then CMD+X

Expected: the text within the text field is selected, and then deleted

Reality: nothing is selected (visually), and upon pressing CMD+X, the entire lexical parent editor is deleted, not just the contents of the text field.

Should add an e2e test to ensure this works as expected as well

@GermanJablo
Copy link
Contributor

I was able to reproduce this in the Lexical playground. Apparently it's a bug that doesn't update the selection inside DecoratorNodes.

I have opened facebook/lexical#6632 so I am closing this one. Let me know if you think we should fix this ourselves and we'll reopen it.

@github-actions github-actions bot removed the status: verified If an issue has been reproduced label Sep 13, 2024
Copy link
Contributor

This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
created-by: Payload team dependency-issue The issue is in a dependency of payload - not payload itself plugin: richtext-lexical @payloadcms/richtext-lexical
Projects
None yet
Development

No branches or pull requests

2 participants