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: Fix selection when hitting "shift+arrowdown" into a table. #6274

Merged
merged 12 commits into from
Jun 26, 2024

Conversation

serey-roth
Copy link
Contributor

Pressing "Shift+ArrowDown" into a table selects only up to the first table-cell node and its children, even though the whole table appears selected.

Description

Previously, the new focus would be set on the table's parent if the current selection was partially within a table. Now, it will be on the first/last cell of the table.

Closes #6273

Before

screencast-playground.lexical.dev-2024.06.07-14_50_45.webm

After

screencast-localhost_3000-2024.06.07-15_27_25.webm

Previously, the selection included only up to the first cell and its children, even though the whole table appears selected. We update the logic so that the entire table will actually be selected.
Copy link

vercel bot commented Jun 7, 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 Jun 26, 2024 5:36am
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 5:36am

@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 Jun 7, 2024
Copy link

github-actions bot commented Jun 7, 2024

size-limit report 📦

Path Size
lexical - cjs 28.47 KB (0%)
lexical - esm 28.28 KB (0%)
@lexical/rich-text - cjs 36.91 KB (0%)
@lexical/rich-text - esm 28.09 KB (0%)
@lexical/plain-text - cjs 35.54 KB (0%)
@lexical/plain-text - esm 25.3 KB (0%)
@lexical/react - cjs 38.82 KB (0%)
@lexical/react - esm 29.27 KB (0%)

ivailop7
ivailop7 previously approved these changes Jun 7, 2024
@ivailop7 ivailop7 added the extended-tests Run extended e2e tests on a PR label Jun 9, 2024
@ivailop7
Copy link
Collaborator

ivailop7 commented Jun 9, 2024

@serey-roth can you recheck the tests, something seems off, I've reran them a couple of times, but fail consistently.

@Sahejkm
Copy link
Contributor

Sahejkm commented Jun 14, 2024

sorry, removing the tag to prevent e2e test on every run, the tests should be triggered on next Approval again automatically.

ivailop7
ivailop7 previously approved these changes Jun 17, 2024
@ivailop7 ivailop7 added the extended-tests Run extended e2e tests on a PR label Jun 17, 2024
auto-merge was automatically disabled June 26, 2024 04:15

Head branch was pushed to by a user without write access

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: Shift+ArrowDown into a table selects only up to the first cell and its children
4 participants