Skip to content

Commit

Permalink
SpacerControls: Set default height to '0px' when no value is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
yogeshbhutkar committed Jan 22, 2025
1 parent be5ce8a commit a60dd78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/spacer/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default function SpacerControls( {
label={ __( 'Height' ) }
value={ height }
onChange={ ( nextHeight ) =>
setAttributes( { height: nextHeight } )
setAttributes( { height: nextHeight ?? '0px' } )
}
isResizing={ isResizing }
/>
Expand Down

0 comments on commit a60dd78

Please sign in to comment.