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

Make sure the correct event happens after confirm #39

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

humancopy
Copy link

It's important to trigger the click instead of updating the window.location because not all links are meant to change the location. Triggering the click again makes sure that the expected event will occur.

I encountered this problem when trying to use sweet alert confirm together with link_to_remove_association from nathanvda/cocoon

It's important to trigger the click instead of updating the window.location because not all links are meant to change the location. Triggering the click again makes sure that the expected event will occur.
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.

1 participant