Skip to content

Commit

Permalink
Layout: Fix toggling off inner blocks content width setting for legac…
Browse files Browse the repository at this point in the history
…y markup
  • Loading branch information
andrewserong committed Sep 7, 2022
1 parent 0f20196 commit 3c36b50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/block-editor/src/hooks/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ function LayoutPanel( { setAttributes, attributes, name: blockName } ) {
layout: {
type:
layoutType?.name ===
'constrained'
'constrained' ||
!! inherit ||
!! contentSize
? 'default'
: 'constrained',
},
Expand Down

0 comments on commit 3c36b50

Please sign in to comment.