Skip to content

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

Merged
ivailop7 merged 3 commits into
meta:mainfrom
etrepum:collapsible-forward-delete
Feb 19, 2025
Merged

ivailop7 merged 3 commits into
meta:mainfrom
etrepum:collapsible-forward-delete

Conversation

@etrepum

@etrepum etrepum commented Feb 18, 2025

Copy link
Copy Markdown
Collaborator

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)

@vercel

vercel Bot commented Feb 18, 2025 •

Copy link
Copy Markdown

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

etrepum commented Feb 18, 2025

Copy link
Copy Markdown
Collaborator Author

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 meta:main with commit e15d7ee Feb 19, 2025

This branch was successfully deployed

2 active deployments
Preview – lexical — 70ed0870 Deployed Feb 19, 2025 by vercel[bot]
Preview – lexical-playground — 70ed0870 Deployed Feb 19, 2025 by vercel[bot]
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