Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop: Fix Go To Anything closing when clicking inside the modal #3029

Merged
merged 3 commits into from
Apr 12, 2020

Conversation

anjulalk
Copy link
Contributor

Fixes #3028

Issue was caused by the Go To Anything modal inheriting onClick behaviour from its parent: Dialog modal layer.

This PR adds a condition to check if the element which dispatched the onClick event is the same element which the onClick event handler was originally attached to. Therefore only clicking on the dialog modal layer will close the modal. Other events are discarded.

@anjulalk
Copy link
Contributor Author

@PackElend Label me please

@laurent22
Copy link
Owner

That looks good, thanks for the quick fix @anjulalk!

@laurent22 laurent22 merged commit aea3de9 into laurent22:master Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Desktop: Goto Anything modal closes even when you click inside
3 participants