You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a bootstrap modal on the page. I can't trigger it to .modal('toggle') if I use external javascript. If it 's inline javascript it works fine.
If its external javascript, I get an error from enquire.js.
"TypeError: $('#slotcap-modal').modal is not a function. (In '$('#slotcap-modal').modal()', '$('#slotcap-modal').modal' is undefined)". This is line 1742 or
" s[l].apply(n[0], n[1]) === !1 && e.stopOnFalse && (l = s.length, n = !1); "
in re callbacks.
Before you ask, jquery is imported before bootstrap.
Yes the id is correct.
If I remove vendor.js it functions as expected; of course at the sacrifice of the site. Since I'm developing a shopify application id prefer to avoid an issue on the debut theme!
The text was updated successfully, but these errors were encountered:
I'm sure this is no longer helpful for your case, but at any rate I had this same issue. I couldn't use "modal.Open" which all signs pointed to as a multiple jQuery issue. Sure enough, inside vendor.js are 3 lines which manually include a minified version of jQuery. I don't believe these are needed (at least I haven't seen any issues thus far) so removing them seems to do the trick.
Weirdest issue ever.
I have a bootstrap modal on the page. I can't trigger it to .modal('toggle') if I use external javascript. If it 's inline javascript it works fine.
If its external javascript, I get an error from enquire.js.$('#slotcap-modal').modal is not a function. (In '$ ('#slotcap-modal').modal()', '$('#slotcap-modal').modal' is undefined)". This is line 1742 or
"TypeError:
" s[l].apply(n[0], n[1]) === !1 && e.stopOnFalse && (l = s.length, n = !1); "
in re callbacks.
Before you ask, jquery is imported before bootstrap.
Yes the id is correct.
If I remove vendor.js it functions as expected; of course at the sacrifice of the site. Since I'm developing a shopify application id prefer to avoid an issue on the debut theme!
The text was updated successfully, but these errors were encountered: