Skip to content

make sure search modal closes on click #47

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

Merged
merged 3 commits into from
Apr 1, 2020

Conversation

jdamiba
Copy link
Contributor

@jdamiba jdamiba commented Mar 31, 2020

@jdamiba jdamiba requested a review from nicolaskruchten March 31, 2020 15:09
@@ -77,6 +77,10 @@ $(function(config) {
}
});

$('#myModal').on('click', function () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will cause it to close on click anywhere right? We only want it to close when people click on a link...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the logic to make sure the modal only closes when links are clicked in the modal.

@jdamiba
Copy link
Contributor Author

jdamiba commented Apr 1, 2020

@nicolaskruchten I have updated this PR.

@nicolaskruchten
Copy link
Contributor

Looks good.

@nicolaskruchten nicolaskruchten merged commit 81c10d0 into master Apr 1, 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.

Search modal doesn't close when link points to current page
2 participants