ashleydw / lightbox

A lightbox gallery plugin for Bootstrap
http://ashleydw.github.io/lightbox
MIT License
1.85k stars 1.3k forks source link

v5.0.0 - Bootstrap error: bootstrap.min.js:6 Uncaught TypeError: f[b] is not a function #213

Closed TechKat closed 7 years ago

TechKat commented 7 years ago

jQuery: v3.1.1 Bootstrap: v3.3.7 ekko-lightbox: v5.0.0

It seems when I try and open a single image with ekko-lightbox, it throws this error when it tries to load the modal, however the backdrop, title etc work alright: Uncaught TypeError: f[b] is not a function

Even dropping Bootstrap to 3.3.6 and jQuery to 2.1.1 throws this same error.

I opened a modal the usual way with Bootstrap and it works well.

chrome_2016-09-27_09-26-25

ashleydw commented 7 years ago

Does this work for you? http://ashleydw.github.io/lightbox/#single-image

ashleydw commented 7 years ago

The latest relies on Bootstrap 4, for BS3 you need the old version: https://github.com/ashleydw/lightbox/releases/tag/v4.0.2

TechKat commented 7 years ago

Probably worth mentioning in v5.0.0 since it says 'Bootstrap 4 support', which would imply it also works alongside BS4, as well as BS3. :)

ashleydw commented 7 years ago

I already added it to the docs and readme 🎉