Skip to content

Conversation

RohithMacharla11
Copy link

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

Copy link

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

Copy link

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 [email protected]. Thanks!

Copy link

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
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)

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.

2 participants