-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Inserter: Don't select the closest block with 'disabled' editing mode #58971
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
|
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. |
|
Size Change: +17 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
ea8f29f to
769f2e5
Compare
|
Flaky tests detected in 769f2e5. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7891851702
|
noisysocks
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.
Nice solve!
|
Is this meant to be backported to 6.5? |
|
I think it would be good addition to the block editing fixes and enhancements. |
…abled (#58971) Co-authored-by: Mamaduka <[email protected]> Co-authored-by: noisysocks <[email protected]> Co-authored-by: dernin <[email protected]>
|
I just cherry-picked this PR to the more/backports-for-beta3 branch to get it included in the next release: 0f3e9fb |
…abled (#58971) Co-authored-by: Mamaduka <[email protected]> Co-authored-by: noisysocks <[email protected]> Co-authored-by: dernin <[email protected]>
What?
Fixes #57227.
PR updates the
onClickhandler for theInbetweenInsertionPointPopovercomponent to only select the closest block if it has editing mode enabled.Why?
Users shouldn't be able to select the disabled blocks.
Testing Instructions
Snippet
Testing Instructions for Keyboard
Same.
Screenshots or screencast
Before
CleanShot.2024-02-01.at.10.08.53.mp4
After
CleanShot.2024-02-13.at.18.33.42.mp4