Desktop: Fixes #3028: Fix Go To Anything closing when clicking inside 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>
pull/3031/head
Anjula Karunarathne 2020-04-12 14:29:00 +05:30 committed by GitHub
parent 83aff6f478
commit aea3de982a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -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() {