diff --git a/packages/block-library/src/search/edit.js b/packages/block-library/src/search/edit.js index 04f0ca3cbc5c00..f4aa14824fff1d 100644 --- a/packages/block-library/src/search/edit.js +++ b/packages/block-library/src/search/edit.js @@ -426,9 +426,9 @@ export default function SearchEdit( { widthUnit === '%' } label={ __( 'Width' ) } - resetAll={ () => { + onDeselect={ () => { setAttributes( { - width: PC_WIDTH_DEFAULT, // Reset to default value + width: undefined, widthUnit: undefined, } ); } }