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

[Breaking Change][lexical-playground]: Refactor: Remove special case for collapsible forward deletion #7204

Merged
merged 3 commits into from
Feb 19, 2025

Conversation

etrepum
Copy link
Collaborator

@etrepum etrepum commented Feb 18, 2025

Description

Now that we have more robust handling of deleteCharacter around decorators and shadow roots, we can get rid of the expectation that CollapsibleContainerNode does something weird. AFAICT this behavior was a result of the implementation and not something that was specifically intended?

Follow-up to #7155
Related #3082 #4257 https://github.com/facebook/lexical/blame/f5e6329c3773a3e968eeb06a50ae002ce8b1318f/packages/lexical-playground/src/plugins/CollapsiblePlugin/index.ts#L169

Closes #7203

Test plan

Before

Delete forward before a CollapsibleNode would pierce the shadow root and unroll its content at the caret

After

Delete forward before a CollapsibleNode will do nothing, like other shadow roots (e.g. table)

Copy link

vercel bot commented Feb 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2025 0:09am
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2025 0:09am

ivailop7
ivailop7 previously approved these changes Feb 18, 2025
@etrepum etrepum added the extended-tests Run extended e2e tests on a PR label Feb 18, 2025
@etrepum
Copy link
Collaborator Author

etrepum commented Feb 18, 2025

Looks like there's probably a webkit-specific issue to handle, will take a look today

@ivailop7 ivailop7 added this pull request to the merge queue Feb 19, 2025
Merged via the queue into facebook:main with commit e15d7ee Feb 19, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. extended-tests Run extended e2e tests on a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Forward deletion of CollapsibleContainerNode inconsistent with backwards deletion
4 participants