Filtering a core block that's nested in the InnerBlocks of a custom block? #53787
kory-northrop
started this conversation in
Developer Experience
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am building a custom block using the @wordpress/create-block package. Right now I have a TextControl component and InnerBlocks, which I limit to just the core/list block. I also have a template defined for the InnerBlocks to have the List block inserted with the
ordered
attribute set totrue
so that it is a numbered list. I want to restrict the List block to only allow the ordered list to be selected, in other words, I'd like to filter the List block so the unordered list option is removed. However, I only want to filter the List block if it's nested inside of my custom block, I don't want all List blocks to be filtered. Does this make sense? Is this possible?Beta Was this translation helpful? Give feedback.
All reactions