diff --git a/packages/block-editor/src/components/spacing-sizes-control/utils.js b/packages/block-editor/src/components/spacing-sizes-control/utils.js index 8236d743ab32f2..ece1573ba9a943 100644 --- a/packages/block-editor/src/components/spacing-sizes-control/utils.js +++ b/packages/block-editor/src/components/spacing-sizes-control/utils.js @@ -211,12 +211,5 @@ export function isValuesDefined( values ) { if ( values === undefined || values === null ) { return false; } - return ! isEmpty( - Object.values( values ).filter( - // Switching units when input is empty causes values only - // containing units. This gives false positive on mixed values - // unless filtered. - ( value ) => !! value && /\d/.test( value ) - ) - ); + return ! isEmpty( Object.values( values ).filter( ( value ) => !! value ) ); }