-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Select end if root has no children in focus logic #3254
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm would dare to say this was intentional but I can't recall why..
I looked through the blame history but didn't see anything. I guess we'll see! |
I think this is why: https://github.com/facebook/lexical/actions/runs/3322384417/jobs/5492978426 collab tests on webkit failing starting with this diff. |
This reverts commit 64cc4d3.
It shouldn't matter if the editor is empty when called
editor.focus
. The cursor should still appear somewhere in the editor when the method is called.