diff --git a/packages/block-editor/src/components/child-layout-control/index.js b/packages/block-editor/src/components/child-layout-control/index.js index 20791d9751bcd4..861560efe1e1fd 100644 --- a/packages/block-editor/src/components/child-layout-control/index.js +++ b/packages/block-editor/src/components/child-layout-control/index.js @@ -187,6 +187,7 @@ function FlexControls( { flexSize: value, } ); } } + shouldPreserveUnit value={ flexSize } label={ flexResetLabel } hideLabelFromVision diff --git a/packages/block-editor/src/components/spacing-sizes-control/input-controls/spacing-input-control.js b/packages/block-editor/src/components/spacing-sizes-control/input-controls/spacing-input-control.js index f03af41bfbc00d..b2970db16adc79 100644 --- a/packages/block-editor/src/components/spacing-sizes-control/input-controls/spacing-input-control.js +++ b/packages/block-editor/src/components/spacing-sizes-control/input-controls/spacing-input-control.js @@ -234,6 +234,7 @@ export default function SpacingInputControl( { hideLabelFromVision className="spacing-sizes-control__custom-value-input" size="__unstable-large" + shouldPreserveUnit onDragStart={ () => { if ( value?.charAt( 0 ) === '-' ) { setMinValue( 0 );