Avoid multiple block adding while "multiple" is false in block.json #38502
Labels
[Feature] Block API
API that allows to express the block paradigm.
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
Hello, I'd like to report issue, or maybe ask if there is a way to avoid duplicated blocks that have defined "multiple" parameter to false in block.json file.
Block still can be duplicated if it's for example inner block of another parent block. Issue is explained below on "Read More" block which would be inserted in post just once.
Even the "Read More" block doesn't really cause the problem if it's inserted more times, I've a block that should be inserted just once to avoid user misleading.
Thank you, Ivan.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: