1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

added search to useEffect deps

This commit is contained in:
Fedor Katurov 2020-10-31 22:03:54 +07:00
parent 1da36ef036
commit c19fb3282e

View file

@ -109,7 +109,7 @@ const TagAutocompleteUnconnected: FC<Props> = ({
window.removeEventListener('resize', onScroll);
window.removeEventListener('scroll', onScroll);
};
}, [options]);
}, [options, search]);
return (
<div className={classNames(styles.window, { [styles.top]: top, [styles.left]: left })}>