From e1fd49b7992432f58db08dbea99383428607cdb9 Mon Sep 17 00:00:00 2001 From: ghalestrilo Date: Mon, 3 Aug 2020 14:48:10 -0300 Subject: [PATCH] :bug: fix dropdown defaulting to open --- client/modules/App/App.jsx | 3 ++- client/utils/custom-hooks.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/modules/App/App.jsx b/client/modules/App/App.jsx index af441a9d..5f9adb6a 100644 --- a/client/modules/App/App.jsx +++ b/client/modules/App/App.jsx @@ -34,7 +34,8 @@ class App extends React.Component { render() { return (
- {this.state.isMounted && !window.devToolsExtension && getConfig('NODE_ENV') === 'development' && } + {/* FIXME: Remove false */} + {false && this.state.isMounted && !window.devToolsExtension && getConfig('NODE_ENV') === 'development' && } {this.props.children}
); diff --git a/client/utils/custom-hooks.js b/client/utils/custom-hooks.js index 9b9e24e2..e289147f 100644 --- a/client/utils/custom-hooks.js +++ b/client/utils/custom-hooks.js @@ -21,7 +21,7 @@ export const useModalBehavior = (hideOverlay) => { // Return values const setRef = (r) => { ref.current = r; }; - const [visible, setVisible] = useState(true); + const [visible, setVisible] = useState(false); const trigger = () => setVisible(!visible); const hide = () => setVisible(false);