Skip to content

Commit

Permalink
fix(SearchBar): Ref wasn't spread correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed Oct 16, 2024
1 parent 883d0a5 commit 3504eb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions react/SearchBar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,10 @@ SearchBar.propTypes = {
onBlur: PropTypes.func
}

const SearchBarWithLocales = props => {
const SearchBarWithLocales = forwardRef((props, ref) => {
useExtendI18n(locales)

return <SearchBar {...props} />
}
return <SearchBar {...props} ref={ref} />
})

export default SearchBarWithLocales

0 comments on commit 3504eb5

Please sign in to comment.