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 Sep 10, 2021
1 parent a75e63c commit df36895
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 df36895

Please sign in to comment.