aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/src/carousel.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/src/carousel.js b/js/src/carousel.js
index 086062251..f37ded7c2 100644
--- a/js/src/carousel.js
+++ b/js/src/carousel.js
@@ -301,8 +301,7 @@ class Carousel extends BaseComponent {
const isNext = order === ORDER_NEXT
const nextElement = element || getNextActiveElement(this._getItems(), activeElement, isNext, this._config.wrap)
- if (nextElement && nextElement.classList.contains(CLASS_NAME_ACTIVE)) {
- this._isSliding = false
+ if (nextElement === activeElement) {
return
}