mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-29 02:30:23 +00:00
Carousel: return early in _slide method
This commit is contained in:
parent
d4e87d28cd
commit
7e5a8016ba
1 changed files with 4 additions and 4 deletions
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue