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

Allow table selection when cells are already selected #4699

Merged
merged 2 commits into from
Jun 24, 2023

Conversation

PeterBul
Copy link
Contributor

Earlier on table selection, previous selection was cleared before immediately returning on mousedown if table cells were already selected. By not returning, but still clearing selection, we are able to make a proper new table selection instead of ending up in bad states.

Fixes issue #4697

See issue for more details.

Before:

table-selection-firefox.mp4
table-selection-sidekick-chromium.mp4

After:

table-selection-firefox-working.mp4
table-selection-sidekick-chromium-working.mp4

@vercel
Copy link

vercel bot commented Jun 23, 2023

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 23, 2023 4:10pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2023 4:10pm

@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 23, 2023
@PeterBul PeterBul changed the base branch from table-selection to main June 23, 2023 16:08
@PeterBul
Copy link
Contributor Author

I am a little uncertain if checking the grid selection in the test like this is a stable enough solution, but I guess you can be the judge of that.

@fantactuka
Copy link
Contributor

Started some rework on table selection in #4689 which seem to address your case, but regardless, having more tests is great. Thank you!

@acywatson acywatson merged commit ad22383 into facebook:main Jun 24, 2023
@zurfyx zurfyx mentioned this pull request Jul 11, 2023
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants