Skip to content

[lexical-playground] Chore: Remove legacy-events mode#8188

Merged
etrepum merged 5 commits intofacebook:mainfrom
levensta:remove-legacy-events-mode
Mar 3, 2026
Merged

[lexical-playground] Chore: Remove legacy-events mode#8188
etrepum merged 5 commits intofacebook:mainfrom
levensta:remove-legacy-events-mode

Conversation

@levensta
Copy link
Copy Markdown
Contributor

@levensta levensta commented Mar 2, 2026

Description

Legacy-events mode tested lexical's functionality by emulating the unavailability of the beforeInput event. Currently, lexical supports the minimum browser versions that already support the beforeInput event.

This PR completely removes GitHub workflows with legacy events mode and any mentions in tests

Closes #5673

Test plan

Before

Running tests in Github Actions CI was divided into two modes: modern-events and legacy-events. Some test were skipped in legacy-events mode

After

All workflows with legacy events have been removed. Test skips for legacy events mode have been removed

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lexical Ready Ready Preview, Comment Mar 3, 2026 2:32pm
lexical-playground Ready Ready Preview, Comment Mar 3, 2026 2:32pm

Request Review

@meta-cla meta-cla 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 2, 2026
@levensta
Copy link
Copy Markdown
Contributor Author

levensta commented Mar 2, 2026

Although the disableBeforeInput option is hidden from the UI, it is still available when adding a query parameter in the playground. Should it be kept?

https://github.com/facebook/lexical/blob/main/packages/lexical-playground/src/Settings.tsx#L45-L51

@etrepum
Copy link
Copy Markdown
Collaborator

etrepum commented Mar 2, 2026

Although the disableBeforeInput option is hidden from the UI, it is still available when adding a query parameter in the playground. Should it be kept?

https://github.com/facebook/lexical/blob/main/packages/lexical-playground/src/Settings.tsx#L45-L51

No

@etrepum etrepum added the extended-tests Run extended e2e tests on a PR label Mar 2, 2026
Copy link
Copy Markdown
Collaborator

@etrepum etrepum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should have a close look at all of the conditional statements that have changed, removing just the subexpressions that referenced the event mode is not always the right thing to do depending on whether it evaluates to true or false with modern events and which logical operator was used.

@etrepum etrepum added this pull request to the merge queue Mar 3, 2026
Merged via the queue into facebook:main with commit 21cde51 Mar 3, 2026
37 checks passed
@etrepum etrepum mentioned this pull request Mar 19, 2026
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: Enter incorrectly handled in Safari after inserting new image (legacy events)

2 participants