Skip to content

Commit 15fc5fe

Browse files
committed
fix(SearchBar): Ref wasn't spread correctly
1 parent 6c8cabf commit 15fc5fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

react/SearchBar/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,10 @@ SearchBar.propTypes = {
273273
onBlur: PropTypes.func
274274
}
275275

276-
const SearchBarWithLocales = props => {
276+
const SearchBarWithLocales = forwardRef((props, ref) => {
277277
useExtendI18n(locales)
278278

279-
return <SearchBar {...props} />
280-
}
279+
return <SearchBar {...props} ref={ref} />
280+
})
281281

282282
export default SearchBarWithLocales

0 commit comments

Comments
 (0)