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: Forward deletion of CollapsibleContainerNode inconsistent with backwards deletion #7203

Closed
etrepum opened this issue Feb 18, 2025 · 0 comments · Fixed by #7204
Closed

Comments

@etrepum
Copy link
Collaborator

etrepum commented Feb 18, 2025

Lexical version: v0.24.0

Steps To Reproduce

example doc

See e2e selection test 'Can delete forward a Collapsible' that encodes this behavior.

  1. Position the caret after the right arrow (there needs to be some inline content in the paragraph above, otherwise the empty paragraph gets deleted)
  2. Press option-delete for forward delete

When #7155 was implemented to make decorators and elements with shadow roots behave correctly, a workaround was implemented to preserve the behavior encoded by this test.

#7155 (comment)_

The current behavior

The node's content gets spliced into the document

The expected behavior

The collapsible gets deleted

Impact of fix

Consistency goes up, code size goes down

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant