From ab93a4c85dddc85c1b3cea950b8343f11a218b7d Mon Sep 17 00:00:00 2001 From: ghalestrilo Date: Thu, 30 Jul 2020 16:16:47 -0300 Subject: [PATCH] :ok_hand: make dropdown list toggle on enter/click --- client/utils/custom-hooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/utils/custom-hooks.js b/client/utils/custom-hooks.js index 1a0978d1..9b9e24e2 100644 --- a/client/utils/custom-hooks.js +++ b/client/utils/custom-hooks.js @@ -22,7 +22,7 @@ export const useModalBehavior = (hideOverlay) => { // Return values const setRef = (r) => { ref.current = r; }; const [visible, setVisible] = useState(true); - const trigger = () => setVisible(true); + const trigger = () => setVisible(!visible); const hide = () => setVisible(false);