Skip to content

Commit

Permalink
Do not reset scale when height is reset
Browse files Browse the repository at this point in the history
  • Loading branch information
stacimc committed Nov 23, 2021
1 parent 7bbc003 commit f744a0d
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,9 @@ const DimensionControls = ( {
className="single-column"
hasValue={ () => !! height }
label={ __( 'Height' ) }
onDeselect={ () =>
setAttributes( {
height: undefined,
scale: DEFAULT_SCALE,
} )
}
onDeselect={ () => setAttributes( { height: undefined } ) }
resetAllFilter={ () => ( {
height: undefined,
scale: DEFAULT_SCALE,
} ) }
isShownByDefault={ true }
panelId={ clientId }
Expand Down

0 comments on commit f744a0d

Please sign in to comment.