diff --git a/ElectronClient/plugins/GotoAnything.jsx b/ElectronClient/plugins/GotoAnything.jsx index 2ef68e48171..f692ef886d0 100644 --- a/ElectronClient/plugins/GotoAnything.jsx +++ b/ElectronClient/plugins/GotoAnything.jsx @@ -115,12 +115,14 @@ class Dialog extends React.PureComponent { } } - modalLayer_onClick() { - this.props.dispatch({ - pluginName: PLUGIN_NAME, - type: 'PLUGIN_DIALOG_SET', - open: false, - }); + modalLayer_onClick(event) { + if (event.currentTarget == event.target) { + this.props.dispatch({ + pluginName: PLUGIN_NAME, + type: 'PLUGIN_DIALOG_SET', + open: false, + }); + } } helpButton_onClick() {