Maybe I’m doing something wrong but if I have a post type with blocks template locked
'template' => array(
array( 'acf/test' ),
array( 'acf/test2' ),
'template_lock' => 'all'
and if there is an InnerBlocks in one of the block render with
<InnerBlocks /> the editor doesn’t work (not initialized I think).
If the block is added with the inserter all is ok.
Has anyone also had this problem?
Thanks in advance,
I found the problem, if your innerblocks is in a template locked you need to add
templateLock="false" like that
echo '<InnerBlocks allowedBlocks="' . esc_attr( wp_json_encode( $allowed_blocks ) ) . '" templateLock="false" />';