Closed weavermedia closed 8 years ago
Maybe a JQuery conflict? SweetAlert js lib conflict? Are you loading the js from another source than the sweet-alert-rails gem?
You can check at this part of code is where the remote confirm get override. Is the issue with all confirms? You can check the javascript console and see if any errors is thrown. If you find something let me know to fix it.
I'm getting the same thing, but it is not working locally on rails 4.2.
Thanks will check this.
I had the same issue, i removed gem 'sweet-alert'
used sweetalert.min.js
from the site. And it worked.
Hope that helps
My links work normally without the gem:
But when I add the gem the dialog is skipped entirely and the record is deleted without confirmation.
A regular Sweet Alert dialog works with:
sweetAlert('Hello');
on the same page but the confirms fail.It all works fine in a blank Rails 4.2 app but is failing in my 3.2.14 production app. May be a JS conflict? Any ideas where I can start debugging it?
My Gemfile: