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

Prevent nested editor event duplication #2935

Merged
merged 3 commits into from
Sep 2, 2022

Conversation

trueadm
Copy link
Collaborator

@trueadm trueadm commented Sep 2, 2022

When we have nested Lexical editors, we run into issues where events are duplicated on the parent editor due to how event propagation works. Rather than block the native event propagation – which can cause bugs around UIs that use other event systems (React's for example) we locally stop propagation for Lexical aware things.

@vercel
Copy link

vercel bot commented Sep 2, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
lexical ✅ Ready (Inspect) Visit Preview Sep 2, 2022 at 4:55PM (UTC)
lexical-playground ✅ Ready (Inspect) Visit Preview Sep 2, 2022 at 4:55PM (UTC)

@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 Sep 2, 2022
@trueadm trueadm marked this pull request as ready for review September 2, 2022 11:09
@trueadm trueadm merged commit d61d3d8 into main Sep 2, 2022
@trueadm trueadm deleted the fix-nested-editor-event-duplication branch September 2, 2022 19:30
thegreatercurve pushed a commit that referenced this pull request Nov 25, 2022
* Prevent nested editor event duplication

* Prevent nested editor event duplication

* Address feedback
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.

3 participants