🐛 fix dropdown defaulting to open
This commit is contained in:
parent
78d4fc42a5
commit
e1fd49b799
2 changed files with 3 additions and 2 deletions
|
@ -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>
|
||||
);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue