-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Block Editor: Fix padding appender last block focus #72821
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
Conversation
|
Size Change: 0 B Total Size: 2.37 MB ℹ️ View Unchanged
|
stokesman
left a comment
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.
Looks good and works well for me. It’s great to see the e2e test update.
I think pointerdown may make more sense for the part this fixes (since focus moves on pointerdown, not click). I’d question whether the insertion should still be limited to click but I wouldn’t say it must be.
If this isn’t backported for 6.9 but it ends up that #72598 is (in support of #72547) then I think we’ll have to remember to reapply this 🤔. I have a couple of fixes for more obscure issues with the padding appender that I'm waiting to suggest cause of the same consideration.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Thanks for the review, @stokesman! I think this is safe to backport; it's a minor change for a fix, and it also improves the behavior of Notes. |
* Add failing e2e test for the bug * Fix the padding appender bug Co-authored-by: Mamaduka <[email protected]> Co-authored-by: stokesman <[email protected]>
|
I just cherry-picked this PR to the wp/6.9 branch to get it included in the next release: 128cddc |
What?
Possible regression after #66402.
PR tries to fix a regression where focus isn't transferred to the last default block in the canvas when clicking "padding appender".
How?
Switch to the
pointerdownevent inusePaddingAppender, so that it can correctly prevent default behavior forpreventFocusCapture.Testing Instructions
Testing Instructions for Keyboard
Same.
Screenshots or screencast
CleanShot.2025-10-30.at.11.12.11.mp4