-
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
Blocks can still be inserted from the list next to the inserter even if useOnce is true #3968
Comments
I guess we should check the "autocompleter" as well. |
Fixed in #3988 |
It seems like this issue has been reintroduced at some point. The code from #3988 does no longer exist, see https://github.com/WordPress/gutenberg/blob/63abd32d9b5cb809ad71167f209dd7a6d0a79a3f/editor/components/inserter-with-shortcuts/index.js @youknowriad Yep, it's also not disabled in the autocompleter. |
Thanks to #7166, disabled blocks can no longer be inserted from the autocompleter. However, the frecent block inserter buttons still let you insert disabled blocks, though there is now an error message shown when you do so: |
Can't reproduce anymore, issue seems to be fixed. |
@Soean I can still reproduce in |
Issue Overview
I've created a block and set useOnce to true, however I'm still able to insert it when it shows up in the quick links next to the inserter. Notice in the screenshot below how my Test Block is greyed out in the actual inserter but can still be highlighted and clicked in the quick links.
Steps to Reproduce (for bugs)
Expected Behavior
You should be able to only insert the block once.
Current Behavior
You can insert the block more than once.
The text was updated successfully, but these errors were encountered: