I'm defining which set of blocks to allow in my custom innerblocks:
const ALLOWED_BLOCKS = [ 'core/image', 'core/paragraph', 'core/group' ];
...
<InnerBlocks allowedBlocks={ ALLOWED_BLOCKS } />;
This seems to work fine. Only image, paragraph, and group blocks are showing as options when trying to insert blocks in my custom innerblocks block.
However the group block also accepts nested blocks. It is not following ALLOWED_BLOCKS
and allowing any block to be added.
How can I apply ALLOWED_BLOCKS
to blocks that use innerblocks which are added to my custom innerblocks?
allowedBlocks
again.