Open nick123pig opened 6 years ago
Bootstrap introduced the modal version definition with 3.2.0: Modal.VERSION = '3.2.0'
https://github.com/twbs/bootstrap/blob/v3.2.0/js/modal.js#L33
=> Updating to Bootstrap >= 3.2.0 (or adding the VERSION definition) will fix the problem where data-confirm-modal fails to detect the Bootstrap version
Add
<script>
$.fn.modal.Constructor.VERSION = "3.2"
</script>
before <script src="/assets/data-confirm-modal.js"></script>
any fix for bootstrap 5.0.0 beta?
Hi @RailsCod3rFuture , please use #83 for newer bootstrap support
Hi I had upgraded to rails 5.2.8.1 from rails 4.2.11. I too saw this error in browser console.
I was on v 1.6.3 of "data-confirm-modal" gem which was doing version check. I downgraded to v 1.5.0 which did not have version check.
Did not saw the error. And also modal looked ok.
Thank you.
I've had an app running for a long time, but just started getting this error out of the blue
At first, it was breaking functionality in my app. I then moved
data-confirm-modal
to the bottom of my application.js and things started working again, but I'm still getting the error in the js console.Here are all the pertinent files (I think)
Thanks!!