Skip to content

Commit

Permalink
Remove "navOpen" from the click listener condition
Browse files Browse the repository at this point in the history
  • Loading branch information
arnautov-anton committed Jul 6, 2023
1 parent d2ad5eb commit 0d2f039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ChannelSearch/hooks/useChannelSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const useChannelSearch = <

if (isInputClick) return;

if ((inputIsFocused && (!query || navOpen)) || clearSearchOnClickOutside) {
if ((inputIsFocused && !query) || clearSearchOnClickOutside) {
exitSearch();
}
};
Expand Down

0 comments on commit 0d2f039

Please sign in to comment.