Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion client/sidebar/search/SearchList.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { useUserPreference, useUserSubscriptions } from '../../contexts/UserCont
import { AsyncStatePhase } from '../../hooks/useAsyncState';
import { useMethodData } from '../../hooks/useMethodData';
import { useAvatarTemplate } from '../hooks/useAvatarTemplate';
import { usePreventDefault } from '../hooks/usePreventDefault';
import { useTemplateByViewMode } from '../hooks/useTemplateByViewMode';
import Row from './Row';
import ScrollerWithCustomProps from './ScrollerWithCustomProps';
Expand Down Expand Up @@ -200,6 +201,8 @@ const SearchList = forwardRef(function SearchList({ onClose }, ref) {
}
});

usePreventDefault(boxRef);

useEffect(() => {
resetCursor();
});
Expand Down Expand Up @@ -282,7 +285,6 @@ const SearchList = forwardRef(function SearchList({ onClose }, ref) {
h='full'
w='full'
data-qa='sidebar-search-result'
onClick={onClose}
aria-busy={status !== AsyncStatePhase.RESOLVED}
>
<Virtuoso
Expand Down