Skip to content

Commit

Permalink
Clear the min height unit attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Aug 25, 2021
1 parent b7f7c34 commit 6efb585
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/block-library/src/cover/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,15 @@ function CoverEdit( {
hasValue={ () => !! minHeight }
label={ __( 'Minimum height' ) }
onDeselect={ () =>
setAttributes( { minHeight: undefined } )
setAttributes( {
minHeight: undefined,
minHeightUnit: undefined,
} )
}
resetAllFilter={ () => ( { minHeight: undefined } ) }
resetAllFilter={ () => ( {
minHeight: undefined,
minHeightUnit: undefined,
} ) }
isShownByDefault={ true }
>
<CoverHeightInput
Expand Down

0 comments on commit 6efb585

Please sign in to comment.