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 20, 2021
1 parent 504dc9d commit e2f6cdd
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 e2f6cdd

Please sign in to comment.