noreiller / bootstrap-modal-carousel

A set of plugins to display a carousel into a fullscreen modal box
http://noreiller.github.com/bootstrap-modal-carousel
MIT License
128 stars 63 forks source link

More carousels #24

Open mdalmazzi opened 7 years ago

mdalmazzi commented 7 years ago

Hi i like your bootstrap-modal-carousel, my idea was to use to show in the modal different carousels.

The problem is that when I switch from a carousel to another, the first time the switch doesn't work, but only the second time, it's really strange.

Any idea?

Thanks

noreiller commented 7 years ago

Hi, can you provide the code you use please ?

mdalmazzi commented 7 years ago

Sure, you can see here http://bitness.it/mappa/mappa.html.

I have two carousels hidden I simply change the data-local with the demo button and manage visibility. But the first switch doesn't work.

Thanks for your support

noreiller commented 7 years ago

I will look at your code in the evening. But for now, as in the examples, you can use a modal per carousel. Moreover, don't use

mdalmazzi commented 7 years ago

Sorry to stress, have you got the time to see the code? Thanks M.

noreiller commented 7 years ago

Hi, I found the "bug" you encountered. The event listener I add to automatically put a carousel into a modal is called after the modal is going to be shown. So it failed. I need a little more time to fit it, as I maintain this library on my free time. For now, please use the patch I gave you yesterday (one modal per carousel). I'll give you updates here when it will be fixed.