1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix querySelector TypeScript errors

This commit is contained in:
Dmitry Lyzo 2022-02-16 22:01:13 +03:00
parent 109fe6056a
commit 9423041ef1
6 changed files with 99 additions and 99 deletions

View file

@ -38,7 +38,7 @@ type SearchFieldsProps = {
const SearchFields: FunctionComponent<SearchFieldsProps> = ({ onSearch = () => {} }: SearchFieldsProps) => {
const element = useRef<HTMLDivElement>(null);
const getSearchInput = () => element?.current?.querySelector('.searchfields-txtSearch');
const getSearchInput = () => element?.current?.querySelector<HTMLInputElement>('.searchfields-txtSearch');
const debouncedOnSearch = useMemo(() => debounce(onSearch, 400), [onSearch]);