Skip to content

Commit

Permalink
Add comment about the custom check for the directInsert option valu…
Browse files Browse the repository at this point in the history
…e that should be handled in the `Inserter`
  • Loading branch information
petitphp committed Sep 11, 2023
1 parent 94e1c4b commit eeb82ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/buttons/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function ButtonsEdit( { attributes, className } ) {
const innerBlocksProps = useInnerBlocksProps( blockProps, {
allowedBlocks: ALLOWED_BLOCKS,
defaultBlock: DEFAULT_BLOCK,
// This check should be handled by the `Inserter` internally to be consistent across all blocks that use it.
directInsert: ! hasButtonVariations,
template: [
[
Expand Down

0 comments on commit eeb82ba

Please sign in to comment.