weixin_39654903
weixin_39654903
2021-01-02 14:30

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

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/lightbox

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

5条回答

  • qq_42541650 qq_42541650 2月前
    • 标题

       

    点赞 评论 复制链接分享
  • weixin_39626211 weixin_39626211 3月前

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

    点赞 评论 复制链接分享
  • weixin_39626211 weixin_39626211 3月前

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

    点赞 评论 复制链接分享
  • weixin_39654903 weixin_39654903 3月前

    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. :)

    点赞 评论 复制链接分享
  • weixin_39626211 weixin_39626211 3月前

    I already added it to the docs and readme 🎉

    点赞 评论 复制链接分享

为你推荐