mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-15 11:59:39 +03:00
Carousel: return early in _slide method
This commit is contained in:
+4
-4
@@ -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