fix(editor): ensure blur event triggers correctly in Firefox#7798
fix(editor): ensure blur event triggers correctly in Firefox#7798RohithMacharla11 wants to merge 1 commit intofacebook:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Thank you for your pull request and welcome to our community. Action RequiredIn 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. ProcessIn 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 If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
etrepum
left a comment
There was a problem hiding this comment.
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)
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