From 8e77a95878e6249bdfb005f5e8188deb533b264d Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Tue, 26 Oct 2021 13:29:04 +0100 Subject: [PATCH] fix build --- src/components/SelectBox.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()