Block Options insert doesn't honour allowedBlocks #10752
Labels
[Feature] Nested / Inner Blocks
Anything related to the experience of nested/inner blocks inside a larger container, like Group or P
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
I set a custom block to ONLY allow a specific kind of block on insert.
allowedBlocks={ [ [ 'library/listitem' ] ] }
This lets me add a block below and only adds the block I've permitted. Awesome. However if I then use the Block Options (the ... on the top of the block), it adds a paragraph every time. I can change this by using the slash command
/listitem
-- which properly is my only option, but it seems illogical that it doesn't honour my default.Using WP 4.9.8, Gutenberg 4.0
The text was updated successfully, but these errors were encountered: