1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-17 18:44:45 +02:00

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>
This commit is contained in:
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

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