Skip to content

Commit

Permalink
fixed routes and search issues with height
Browse files Browse the repository at this point in the history
  • Loading branch information
DabeerRaza committed Oct 13, 2023
1 parent 8abe7a1 commit cdaabe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/atomicui/organisms/SearchBox/SearchBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ const SearchBox: React.FC<SearchBoxProps> = ({
if (ui === ResponsiveUIEnum.explore) {
setIsFocused(false);
searchInputRef.current?.blur();
setBottomSheetMinHeight(BottomSheetHeights.explore.min);
}
}

Expand All @@ -128,7 +129,7 @@ const SearchBox: React.FC<SearchBoxProps> = ({
document.removeEventListener("touchmove", handleClickOutside);
};
}
}, [ui, isDesktop, bottomSheetRef]);
}, [ui, isDesktop, bottomSheetRef, setBottomSheetMinHeight]);

const handleSearch = useCallback(
async (value: string, exact = false, action: string) => {
Expand Down

0 comments on commit cdaabe1

Please sign in to comment.