Skip to content

Commit

Permalink
Update packages/block-library/src/search/edit.js
Browse files Browse the repository at this point in the history
Co-authored-by: Aki Hamano <[email protected]>
  • Loading branch information
benazeer-ben and t-hamano authored Jan 15, 2025
1 parent cc4da72 commit 5331acf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/search/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
} );
} }
Expand Down

0 comments on commit 5331acf

Please sign in to comment.