From e2f6cddda44a7819ece5bd8bf357579730e485aa Mon Sep 17 00:00:00 2001 From: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> Date: Fri, 20 Aug 2021 16:32:11 +1000 Subject: [PATCH] Clear the min height unit attribute --- packages/block-library/src/cover/edit.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/cover/edit.js b/packages/block-library/src/cover/edit.js index d10d874a25dc4..bbcae8fad7e02 100644 --- a/packages/block-library/src/cover/edit.js +++ b/packages/block-library/src/cover/edit.js @@ -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 } >