-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
The in-between inserter doesn't appear when the last child block is selected #53315
Comments
Thanks for opening this! Looks like a straight forward dev task to dive into. Added to the Polish board :) |
We must consider what happens if there is only one image in the gallery. Probably nothing, but if we find a solution it could fix #50021 |
I believe this issue isn't limited to the Gallery block; I can reproduce the same bug with Buttons and Columns. As far as I can tell, gutenberg/packages/block-editor/src/components/block-list/use-in-between-inserter.js Lines 132 to 136 in 02dc886
Steps to reproduce
ScreencastCleanShot.2024-02-13.at.17.37.44.mp4 |
Good find, that stops the in-between inserter from showing under the toolbar in vertical block lists, but it wouldn't be an issue for horizontal block lists. There could be some kind of additional logic added to that if statement. |
Description
Coming from #47200 (comment)
The inserter does appear in Galleries, even when an image is selected. However, it does not appear when the last image is selected.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Screen.Recording.2023-08-03.at.23.14.26.mp4
Environment info
Please confirm that you have searched existing issues in the repo.
No
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: