bootstrap-touch-carousel icon indicating copy to clipboard operation
bootstrap-touch-carousel copied to clipboard

Bug: Carousel inside a modal

Open thecodingwhale opened this issue 11 years ago • 12 comments

I need to click first the next or previous button in order the touch event to work,

thecodingwhale avatar Mar 25 '14 08:03 thecodingwhale

@thecodingwhale i don't know how to reproduce this behaviour?

ixisio avatar Jun 10 '14 07:06 ixisio

is this issue still relevant?

ixisio avatar Jul 22 '14 04:07 ixisio

Hello, I had the same issue and I have found that my data-ride="carousel" was missing in the div of my carousel.

It works well with the data-ride attribute.

BTW, thank you for your awesome plugin :+1:

pierrefaure avatar Jul 22 '14 05:07 pierrefaure

hey @pierrefaure, appreciate your feedback! have you test the plugin to work inside a modal?

ixisio avatar Jul 22 '14 06:07 ixisio

Hi, My carousel isn't inside a modal. My bad I have read the title too quickly :) (but my issue was the same than described above)

pierrefaure avatar Jul 22 '14 17:07 pierrefaure

@thecodingwhale any way to describe how other people could reproduce this bug?

ixisio avatar Jul 25 '14 10:07 ixisio

@ixisio those things happened with I try to put the carousel inside a modal. I need to trigger first the next or previous event before the touch event work.

thecodingwhale avatar Jul 31 '14 09:07 thecodingwhale

@thecodingwhale the DOM of the carousel is not rendered initially, so IMO the onDocumentReady event of the carousel fires but no carousel slides are in the current document. Are you generate the Modal with javascript on the fly?

ixisio avatar Aug 08 '14 10:08 ixisio

Oh so that is why I need to click it first before it take effect? No, its a plain html only.

thecodingwhale avatar Aug 08 '14 16:08 thecodingwhale

@thecodingwhale have a demo link for me?

ixisio avatar Aug 18 '14 04:08 ixisio

The "First-Click-Problem" occurs only (in my case) if the carousel isn´t initialized via JavaScript but rather via Data-Attributes. If I initialize the carousel via js, everything works find. But thats not the solution, in my document i need the config via data-attributes (also the data-ride-Attr.) - and this is redundant...

shica77 avatar Oct 28 '14 09:10 shica77

@shica77 I will carry on. Thanks for your findings!

ixisio avatar Oct 28 '14 11:10 ixisio