Skip to content

fix(editor): ensure blur event triggers correctly in Firefox#7798

Closed
RohithMacharla11 wants to merge 1 commit intofacebook:mainfrom
RohithMacharla11:fix-firefox-blur-focus
Closed

fix(editor): ensure blur event triggers correctly in Firefox#7798
RohithMacharla11 wants to merge 1 commit intofacebook:mainfrom
RohithMacharla11:fix-firefox-blur-focus

Conversation

@RohithMacharla11
Copy link
Copy Markdown

This PR fixes an issue where the Lexical editor in Firefox stays focused even after clicking outside.

Steps to Reproduce:

Open Lexical Playground in Firefox.

Type some text.

Move the cursor inside, then click outside the editor.

The editor remains focused.

Fix Implemented:

Added a mousedown listener for Firefox to detect outside clicks.

Manually dispatches BLUR_COMMAND to align behavior with Chrome/Edge.

Before:
Editor stays focused in Firefox when clicking outside.

After:
Editor correctly loses focus in Firefox when clicking outside.

Fix.mp4

@vercel
Copy link
Copy Markdown

vercel Bot commented Sep 5, 2025

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

Project Deployment Preview Comments Updated (UTC)
lexical Ready Ready Preview Comment Sep 5, 2025 6:52am
lexical-playground Ready Ready Preview Comment Sep 5, 2025 6:52am

@meta-cla
Copy link
Copy Markdown

meta-cla Bot commented Sep 5, 2025

Hi @RohithMacharla11!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@meta-cla
Copy link
Copy Markdown

meta-cla Bot commented Sep 5, 2025

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@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 Sep 5, 2025
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.

This PR contains unrelated changes that should be removed and according to the author of the issue it doesn't fix the problem #7788 (comment)

@etrepum etrepum added the stale-pr PRs that are closed due to staleness. Please reopen the PR if there are new updates label Feb 13, 2026
@etrepum etrepum closed this Feb 13, 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. stale-pr PRs that are closed due to staleness. Please reopen the PR if there are new updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants