-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Carousel prev & next buttons busted in 2.2.0 #5688
Comments
Can confirm this experience even with the carousel template website: http://twitter.github.com/bootstrap/examples/carousel.html If you press the arrows, nothing happens, but after 10 seconds the images start to fly around like crazy. |
+1, I can confirm this. |
Same here! |
Yeah, big issue! |
Yup, I've asked @fat to take a look and see what he can do. Sorry folks! |
+1 |
Confirmed bug. |
this bug is present since a few versions now, see #4938 for a jsfiddle that highlights the problem and a fix/workaround. |
I also confim the bug (Chrome 22, FF 16 e IE 10). |
+1, big issue |
I notified about this few days ago - thought it would be noticed: So .. confirmed here too. |
👍 nice work @fat |
I believe that this fix is responsible for making the next and previous buttons on the carousel stop working, in fact, it simply leads to an extra
setInterval()
call so for each click you get another interval added.The code previously had
options = !$target.data('modal') && $.extend({}, $target.data(), $this.data())
, the'modal'
typo meant that you always collected data from$target
and$this
;$this
has the'next'
and'prev'
values on'data-slide'
, so these actions never get passed up to$.fn.carousel
where this line should be invoked:else if (action) data[action]()
and instead falls through toelse if (options.interval) data.cycle()
The text was updated successfully, but these errors were encountered: