-
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
Revert "Block Insertion: Clear the insertion point when selecting a d… #65208
Conversation
Size Change: -41 B (0%) Total Size: 1.78 MB
ℹ️ View Unchanged
|
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.
Thank you, @jeryj!
Flaky tests detected in e1455ab. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/10794373299
|
case 'CLEAR_SELECTED_BLOCK': | ||
case 'SELECT_BLOCK': |
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.
Side note: Based on my git bisect
results, this change from #64048 might have been a cause for #65106 (comment).
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. |
…ifferent block or clearing block selection (#64048)"
What?
This reverts commit c73aa36.
Why?
The inserter was relying on getBlockInsertionPoint(), which will update depending on what block is #64048, which causes the inserter sidebar to rerender rapidly.
How?
Reverts back to using getInsertionPoint. A follow-up tor reimplement the fix from #64048 is in progress at #65098
Testing Instructions
For hovering item sidebar rerenders
For pattern rerenders
Testing Instructions for Keyboard
Screenshots or screencast