mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-16 02:24:19 +02:00
fix carousel when hiding a reshowing - make sure it always triggers transition end #3248
This commit is contained in:
4
js/bootstrap-carousel.js
vendored
4
js/bootstrap-carousel.js
vendored
@@ -68,6 +68,10 @@
|
||||
|
||||
, pause: function (e) {
|
||||
if (!e) this.paused = true
|
||||
if (this.$element.find('.next, .prev')) {
|
||||
this.$element.trigger($.support.transition.end)
|
||||
this.cycle()
|
||||
}
|
||||
clearInterval(this.interval)
|
||||
this.interval = null
|
||||
return this
|
||||
|
Reference in New Issue
Block a user