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 Fix: Insert paragraph at table's edge inside a collapsible #6159

Conversation

serey-roth
Copy link
Contributor

Description

The current logic for checking if a selection is at a table's edge fails when the table is inside a collapsible section, as it compares against the root element. This PR fixes the issue by comparing against the table's parent element instead.

Closes: #6157

Test plan

Before

screencast-playground.lexical.dev-2024.05.21-10_16_24.webm

After

screencast-localhost_3002-2024.05.21-10_18_35.webm

Copy link

vercel bot commented May 21, 2024

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 May 21, 2024 5:22pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 21, 2024 5:22pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 21, 2024
@serey-roth serey-roth changed the title Bug Fix: Insert paragraph at table's edge inside a collapsible. Bug Fix: Insert paragraph at table's edge inside a collapsible May 21, 2024
Copy link

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
packages/lexical/dist/Lexical.js 23.93 KB (0%) 479 ms (0%) 419 ms (+13.24% 🔺) 898 ms
packages/lexical-rich-text/dist/LexicalRichText.js 34.53 KB (0%) 691 ms (0%) 1.3 s (+32.65% 🔺) 2 s
packages/lexical-plain-text/dist/LexicalPlainText.js 34.59 KB (0%) 692 ms (0%) 1.3 s (+19.85% 🔺) 2 s

Copy link
Collaborator

@ivailop7 ivailop7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@ivailop7 ivailop7 added the extended-tests Run extended e2e tests on a PR label May 21, 2024
@ivailop7 ivailop7 added this pull request to the merge queue May 21, 2024
Merged via the queue into facebook:main with commit 69161e7 May 21, 2024
39 of 42 checks passed
@serey-roth serey-roth deleted the serey/table/collapsible/table-edge-selection branch July 11, 2024 16:47
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.

3 participants