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.
I encountered this problem when trying to use sweet alert confirm together with
link_to_remove_association
from nathanvda/cocoon