🐛 fix dropdown defaulting to open

This commit is contained in:
ghalestrilo 2020-08-03 14:48:10 -03:00
parent 78d4fc42a5
commit e1fd49b799
2 changed files with 3 additions and 2 deletions

View file

@ -34,7 +34,8 @@ class App extends React.Component {
render() {
return (
<div className="app">
{this.state.isMounted && !window.devToolsExtension && getConfig('NODE_ENV') === 'development' && <DevTools />}
{/* FIXME: Remove false */}
{false && this.state.isMounted && !window.devToolsExtension && getConfig('NODE_ENV') === 'development' && <DevTools />}
{this.props.children}
</div>
);

View file

@ -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);