diff --git a/ElectronClient/plugins/GotoAnything.jsx b/ElectronClient/plugins/GotoAnything.jsx index 8c73f04248..b0995f5cc2 100644 --- a/ElectronClient/plugins/GotoAnything.jsx +++ b/ElectronClient/plugins/GotoAnything.jsx @@ -48,6 +48,7 @@ class Dialog extends React.PureComponent { this.onKeyDown = this.onKeyDown.bind(this); this.input_onChange = this.input_onChange.bind(this); this.input_onKeyDown = this.input_onKeyDown.bind(this); + this.modalLayer_onClick = this.dialogModalLayer_onClick.bind(this); this.listItemRenderer = this.listItemRenderer.bind(this); this.listItem_onClick = this.listItem_onClick.bind(this); this.helpButton_onClick = this.helpButton_onClick.bind(this); @@ -114,6 +115,14 @@ class Dialog extends React.PureComponent { } } + modalLayer_onClick() { + this.props.dispatch({ + pluginName: PLUGIN_NAME, + type: 'PLUGIN_DIALOG_SET', + open: false, + }); + } + helpButton_onClick() { this.setState({ showHelp: !this.state.showHelp }); } @@ -385,7 +394,7 @@ class Dialog extends React.PureComponent { const helpComp = !this.state.showHelp ? null :