sweet-alert-rails-confirm icon indicating copy to clipboard operation
sweet-alert-rails-confirm copied to clipboard

Make sure the correct event happens after confirm

Open humancopy opened this issue 9 years ago • 0 comments

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

humancopy avatar Feb 25 '16 23:02 humancopy