-
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
multiple:false support is not honored for shared and nested blocks #7957
Comments
Tested this with the |
Reason for that is that |
The reason why the |
cc @noisysocks |
With my limited gutenknowledge I can only think of two approaches for shared blocks:
I lean towards the second option, but not sure about the scope (should we only do this for |
I've been looking at what happens with nested blocks. If a This is what I've got atm: nested blocks use the |
The |
When deriving whether a block should be disabled or not, the inserter should take into account the blocks referenced by the existing top-level shared blocks.
When deriving whether a block should be disabled or not, the inserter should take into account the blocks referenced by the existing top-level shared blocks.
When deriving whether a block should be disabled or not, the inserter should take into account the blocks referenced by the existing top-level shared blocks.
When deriving whether a block should be disabled or not, the inserter should take into account the blocks referenced by the existing top-level shared blocks.
When deriving whether a block should be disabled or not, the inserter should take into account the blocks referenced by the existing top-level shared blocks.
When deriving whether a block should be disabled or not, the inserter should take into account the blocks referenced by the existing top-level shared blocks.
#8075 has landed support for taking into account nested blocks to disable blocks that can't be added more than once. We decided to put off SharedBlocks at the moment, see #8075 (comment) |
Block types that have
multiple: false
in their supports array are intended to be included only once in a post. Take for example theMore
block.This setting is not honored when those kind of blocks are converted to Shared or are nested.
How to reproduce
For shared
More
block to your post.Duplicate option
is shown.From this point on, the
Duplicate
option is shown in the block settings menu for the shared more block. TheMore
block is eligible for adding from the inserter as well.For nested
Columns (beta)
block.More
blocks as you want in any column.The
Duplicate
option is not in the block settings menu, but you can add theMore
from the inserter and publish the post successfully.The text was updated successfully, but these errors were encountered: