From 49eee39aa7bfc657f7377f306d25a40c4bc9b82a Mon Sep 17 00:00:00 2001 From: Mayank-Tripathi32 Date: Sat, 21 Dec 2024 01:33:17 +0530 Subject: [PATCH] Revert "feat: fixed child block unit controls issue with unit reset" This reverts commit d08a55a2db7e067e3e095be1f0f79a31a29dfd69. --- .../src/components/child-layout-control/index.js | 6 ------ 1 file changed, 6 deletions(-) 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 e300ff84b83ebb..20791d9751bcd4 100644 --- a/packages/block-editor/src/components/child-layout-control/index.js +++ b/packages/block-editor/src/components/child-layout-control/index.js @@ -10,7 +10,6 @@ import { __experimentalVStack as VStack, __experimentalToolsPanelItem as ToolsPanelItem, __experimentalUseCustomUnits as useCustomUnits, - __experimentalParseQuantityAndUnitFromRawValue as parseQuantityAndUnitFromRawValue, Flex, FlexItem, } from '@wordpress/components'; @@ -183,11 +182,6 @@ function FlexControls( { size="__unstable-large" units={ units } onChange={ ( value ) => { - if ( value === '' ) { - const [ , currentUnit ] = - parseQuantityAndUnitFromRawValue( flexSize ); - value = `0${ currentUnit || 'px' }`; - } onChange( { selfStretch, flexSize: value,