-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix clicking on the toggle button not closing the block inserter #47926
Conversation
Size Change: +8 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
Flaky tests detected in 57d84b9. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4141987945
|
6e8af48
to
06b3438
Compare
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.
This is working well in the post editor, but I still see the same issue in the site editor so you'll need to adjust it there too. 👍
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.
@kevin940726 Thanks for the fix. This has been annoying me for some time. Glad the button toggles now.
b90720c
to
57d84b9
Compare
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.
Fixes issue in both Post and Site editor ✅
It seems there is a consensus to land this ad hoc fix, so feel free to land..
Working in the site editor now, LGTM! 👍 |
I just cherry-picked this PR to the wp/6.2 branch to get it included in the next release: 7c87d68 |
What and why?
Fix #43090.
How?
This PR takes an ad-hoc approach to fix the issue. There might be better solutions with focus handling, but it'd be nice to land this until we find a better solution.Testing Instructions
Also added an e2e test.
Testing Instructions for Keyboard
This issue is not reproducible on keyboard.
Screenshots or screencast
Kapture.2023-02-09.at.21.02.27.mp4