Skip to content

Commit

Permalink
fix: address search bar issue in the navbar (#3447)
Browse files Browse the repository at this point in the history
Co-authored-by: Ansh Goyal <[email protected]>
  • Loading branch information
allenhack638 and anshgoyalevil authored Dec 13, 2024
1 parent 172f4d6 commit a9bc0b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/AlgoliaSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ export function SearchButton({ children, indexName = INDEX_NAME, ...props }: ISe
useEffect(() => {
if (typeof children === 'function') {
setChildren(children({ actionKey }));
} else {
setChildren(children);
}
}, []);

Expand Down

0 comments on commit a9bc0b2

Please sign in to comment.