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

[lexical-playground][TableCellResizer] Bug Fix: Register event handlers on root element #6416

Merged
merged 3 commits into from
Jul 20, 2024

Conversation

JBWereRuss
Copy link
Contributor

@JBWereRuss JBWereRuss commented Jul 18, 2024

The TableCellResizer plugin registers mouse events on the document, but if there are multiple editors on the page they all receive events causing the inactive editors to throw TableCellResizer: Table cell node not found. errors and leading to the inactive editors becoming unresponsive.

Changed the plugin to register events on the editors root element so that events are only raised and handled by the editor the mouse is over.

Copy link

vercel bot commented Jul 18, 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 Jul 20, 2024 11:23pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 20, 2024 11:23pm

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

github-actions bot commented Jul 18, 2024

size-limit report 📦

Path Size
lexical - cjs 28.76 KB (0%)
lexical - esm 28.61 KB (0%)
@lexical/rich-text - cjs 37.2 KB (0%)
@lexical/rich-text - esm 28.21 KB (0%)
@lexical/plain-text - cjs 35.85 KB (0%)
@lexical/plain-text - esm 25.5 KB (0%)
@lexical/react - cjs 39.12 KB (0%)
@lexical/react - esm 29.49 KB (0%)

@JBWereRuss JBWereRuss changed the title TableCellResizer register event handlers on root element [lexical-playground][TableCellResizer] Fix: Register event handlers on root element Jul 18, 2024
@JBWereRuss JBWereRuss changed the title [lexical-playground][TableCellResizer] Fix: Register event handlers on root element [lexical-playground][TableCellResizer] Bug Fix: Register event handlers on root element Jul 18, 2024
@ivailop7 ivailop7 added the extended-tests Run extended e2e tests on a PR label Jul 20, 2024
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