sweet-alert2-rails icon indicating copy to clipboard operation
sweet-alert2-rails copied to clipboard

Add support for button_to

Open aidandamerell opened this issue 6 years ago • 1 comments

Current sweet alert is not triggered when a button_to tag is used. This should act in the same way a link_to or submit_tag works but the module doesn't define a function for button_to, only button_tag. E.G. <%= button_to "Click Me", root_path, data: { confirm: "Do it?" }, class: "ui button" %>

aidandamerell avatar Nov 07 '18 09:11 aidandamerell

see #9

smmr0 avatar Feb 10 '20 16:02 smmr0