-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Zoom Out: Don't prevent the inserted block from being focussed #68245
base: trunk
Are you sure you want to change the base?
Conversation
Size Change: -12 B (0%) Total Size: 1.84 MB
ℹ️ View Unchanged
|
Flaky tests detected in 49eb4a2. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12467085716
|
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 think you misunderstood the issue, It was about focusing in zoomout state when adding new paragraph then the focus should shift to new block along with cursor.
The fix does not work for me. Can you attach a video?
Here it is working for me Screen.Recording.2024-12-23.at.17.43.42.mov |
@scruffian Seems to be working now, I think it was build issue on my side. This looks much cleaner than alternative but we need to find out why it was added in first place. I think I saw a relevant previous PR for this. |
It was added in #60441, Relevant comments: https://github.com/WordPress/gutenberg/pull/60441/files#r1555927512 cc: @jeryj Can you please add some context if ZoomOut is still required here? Or we may need to add logic to put focus on ZoomOut button initially. |
What?
Alternative fix for #68145
We already have a fix here: #68153. However this approach adds more code.
Instead this PR tries to remove the code that causes the issue. There are still some outstanding questions:
Testing Instructions