Blocks should only be able to be transformed into other allowed blocks. #6363
Labels
[Feature] Blocks
Overall functionality of blocks
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Issue Overview
If you define a list of "allowed_blocks" via this filter: https://github.com/WordPress/gutenberg/blob/a1055928b76718dc363be410ad6b2f00ff367c2c/docs/extensibility/extending-blocks.md#hiding-blocks-from-the-inserter
The blocks are filtered out of the inserter, but the "Transform Into" option allows you to transform into any block still.
I think the expectation would be for the
transform into
option to also respect just the allowed blocks.Steps to Reproduce (for bugs)
allowed_block_types
to just filter support for a single block type:Expected Behavior
allowed_block_types
to just filter support for a single block type:Todos
The text was updated successfully, but these errors were encountered: