-
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
Editor: Ensure there is no blinking Toolbar when inserting blocks between lines #6276
Conversation
Related: #5658 (comment) Specifically also the latter note here:
This is also why the gutenberg/test/e2e/specs/adding-blocks.test.js Lines 13 to 34 in 473ef22
|
@youknowriad, what was the reason why we moved |
@gziolo It was moved their to be shown properly for floated blocks (relative to the block's position) |
I'm not inclined to add even more nested nodes to what already exists for a block, but one option is to apply the floating styles as a separate wrapper element which is not susceptible to the block's (There are some particular intricacies of this with wrapper |
There was also the idea of using the nested block's concept of |
It's no longer an issue. There was a change introduced which completely refines the way this inserter works. You can click only on the plus icon. Closing this PR. |
Description
When testing other PRs I noticed a very subtle bug where Block Toolbar blinks after you click on the in-between line inserter. This happens when you reach a very specific area close to the top and bottom edges. See screenshots.
This PR fixes this issue by preventing propagation of
focus
event to theBlockContextualToolbar
. I'm not convinced this is the best solution in the long run, so happy to update if you have a better idea how to fix it.How has this been tested?
Manually
Screenshots
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist: