Skip to content

Commit

Permalink
fix: fixed issue with grow and fill in spacer block showing pending c…
Browse files Browse the repository at this point in the history
…hanges in editor
  • Loading branch information
Mayank-Tripathi32 committed Nov 15, 2024
1 parent ee5aee9 commit f2bc33f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/spacer/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,8 @@ const SpacerEdit = ( {
}
} else if (
isFlexLayout &&
( selfStretch === 'fill' || selfStretch === 'fit' )
( selfStretch === 'fill' || selfStretch === 'fit' ) &&
width !== undefined
) {
if ( inheritedOrientation === 'horizontal' ) {
setAttributes( {
Expand Down

0 comments on commit f2bc33f

Please sign in to comment.