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] Bug Fix: Ignore input event from inside decorators #7354

Merged
merged 5 commits into from
Mar 24, 2025

Conversation

etrepum
Copy link
Collaborator

@etrepum etrepum commented Mar 20, 2025

Breaking Change

Input events that happen while a decorator is active are no longer processed by the LexicalEditor event loop. This generally didn't happen in most cases, but if you were relying on this behavior, you'll need to manually dispatch commands to the editor accordingly from an event listener on your decorator.

Description

The input event can be fired from inside decorators in Firefox and this results in mutating the decorator and the editor when there is a lexical selection

Closes #7296
Closes #7071

Test plan

e2e test

@etrepum etrepum added the extended-tests Run extended e2e tests on a PR label Mar 20, 2025
Copy link

vercel bot commented Mar 20, 2025

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 Mar 20, 2025 11:34pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 20, 2025 11:34pm

@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 Mar 20, 2025
@etrepum etrepum added this pull request to the merge queue Mar 24, 2025
Merged via the queue into facebook:main with commit ce86638 Mar 24, 2025
39 checks passed
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
3 participants