-
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
Don't open block appender modal if only one block is allowed #19620
Comments
This is how the "navigation" and "buttons" blocks work already. cc @jorgefilipecosta |
Ah, indeed. |
@chrisvanpatten I am using the Gutenberg plugin. The problem also persists when only allowing the Paragraph block. |
I did some tests, and it seems like the behavior currently implemented to insert the block if only one block is allowed only happens for insertions inside inner blocks. Outside innerblocks for the root bock, it does not occur. This seems inconsistent, and if possible, it is something that we should fix. |
Hello everyone. It would be great with a status update here. |
Hi @paaljoachim, yes I can take a close look into this issue :) |
I'm going to close this. The Inserter's behavior has changed recently. Now, it displays the allowed block at the top, followed by the remaining blocks. See #62169. |
Hey,
I am only allowing one block on my page using this code:
It doesn't really make sense to allow the modal in this case, the appender icon should instead insert the only block that is available.
The text was updated successfully, but these errors were encountered: