Skip to content
Closed
Prev Previous commit
Next Next commit
fix row when setting
  • Loading branch information
SaxonF authored and tellthemachines committed Aug 2, 2023
commit b74b0b09b5273804d4ffffc46a7a7ab404ff125d
8 changes: 7 additions & 1 deletion packages/block-editor/src/hooks/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,13 @@ function LayoutPanel( { setAttributes, attributes, name: blockName } ) {
setAttributes( { layout: { type: 'default' } } );
}
} else {
setAttributes( { layout: { ...usedLayout, type: newType } } );
setAttributes( {
layout: {
...usedLayout,
type: newType,
orientation: 'horizontal',
},
} );
}
};

Expand Down