Skip to content

Commit

Permalink
Desktop: Fixes #3028: Fix Go To Anything closing when clicking inside…
Browse files Browse the repository at this point in the history
… the modal (#3029)

* Fix Go To Anything closing when clicking inside the modal

* Update GotoAnything.jsx

* Update GotoAnything.jsx

Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>
  • Loading branch information
Anjula Karunarathne and laurent22 committed Apr 12, 2020
1 parent 83aff6f commit aea3de9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ElectronClient/plugins/GotoAnything.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit aea3de9

Please sign in to comment.