mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-06 13:46:42 +02:00
Carousel: return early in _slide
method
This commit is contained in:
@@ -297,6 +297,10 @@ class Carousel extends BaseComponent {
|
||||
}
|
||||
|
||||
_slide(order, element = null) {
|
||||
if (this._isSliding) {
|
||||
return
|
||||
}
|
||||
|
||||
const activeElement = this._getActive()
|
||||
const isNext = order === ORDER_NEXT
|
||||
const nextElement = element || getNextActiveElement(this._getItems(), activeElement, isNext, this._config.wrap)
|
||||
@@ -305,10 +309,6 @@ class Carousel extends BaseComponent {
|
||||
return
|
||||
}
|
||||
|
||||
if (this._isSliding) {
|
||||
return
|
||||
}
|
||||
|
||||
const nextElementIndex = this._getItemIndex(nextElement)
|
||||
|
||||
const triggerEvent = eventName => {
|
||||
|
Reference in New Issue
Block a user