diff --git a/src/components/SelectBox.js b/src/components/SelectBox.js index 069deb24..2bf13348 100644 --- a/src/components/SelectBox.js +++ b/src/components/SelectBox.js @@ -44,7 +44,8 @@ export function SelectBox({ options, selectedItem, setSelectedItem }) { return () => { document.removeEventListener("mousedown", handleClick); }; - }, [handleClick]); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, []); const onOptionClick = (e, option, i) => { e.stopPropagation()