diff --git a/packages/block-library/src/search/edit.js b/packages/block-library/src/search/edit.js index df00d0c10c0678..04f0ca3cbc5c00 100644 --- a/packages/block-library/src/search/edit.js +++ b/packages/block-library/src/search/edit.js @@ -457,7 +457,7 @@ export default function SearchEdit( { onUnitChange={ ( newUnit ) => { setAttributes( { width: - newUnit === '%' + '%' === newUnit ? PC_WIDTH_DEFAULT : PX_WIDTH_DEFAULT, widthUnit: newUnit,