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() { modalLayer_onClick(event) {
this.props.dispatch({ if (event.currentTarget == event.target) {
pluginName: PLUGIN_NAME, this.props.dispatch({
type: 'PLUGIN_DIALOG_SET', pluginName: PLUGIN_NAME,
open: false, type: 'PLUGIN_DIALOG_SET',
}); open: false,
});
}
} }
helpButton_onClick() { helpButton_onClick() {