mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-02 12:30:23 +00:00
fixes #11379 - Fix carousel this.sliding not getting reset if $next.hasClass('active')
This commit is contained in:
parent
76f0d0ff32
commit
8a62f21113
3 changed files with 3 additions and 3 deletions
2
dist/js/bootstrap.js
vendored
2
dist/js/bootstrap.js
vendored
|
|
@ -351,7 +351,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
|||
$next = this.$element.find('.item')[fallback]()
|
||||
}
|
||||
|
||||
if ($next.hasClass('active')) return
|
||||
if ($next.hasClass('active')) return this.sliding = false
|
||||
|
||||
var e = $.Event('slide.bs.carousel', { relatedTarget: $next[0], direction: direction })
|
||||
this.$element.trigger(e)
|
||||
|
|
|
|||
2
dist/js/bootstrap.min.js
vendored
2
dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -100,7 +100,7 @@
|
|||
$next = this.$element.find('.item')[fallback]()
|
||||
}
|
||||
|
||||
if ($next.hasClass('active')) return
|
||||
if ($next.hasClass('active')) return this.sliding = false
|
||||
|
||||
var e = $.Event('slide.bs.carousel', { relatedTarget: $next[0], direction: direction })
|
||||
this.$element.trigger(e)
|
||||
|
|
|
|||
Loading…
Reference in a new issue