Skip to content

Commit

Permalink
Fix handling of ref to search block
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed May 20, 2021
1 parent 325880c commit 8acf8c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/search/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,11 @@ export default function SearchEdit( {
const blockProps = useBlockProps( {
className: getBlockClassNames(),
style: alignedStyles,
ref: searchRef,
} );

return (
<div { ...blockProps } ref={ searchRef }>
<div { ...blockProps }>
{ resizeListener }
{ controls }

Expand Down

0 comments on commit 8acf8c1

Please sign in to comment.