Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorGeoSot <geo.sotis@gmail.com>2022-03-02 03:16:51 +0300
committerXhmikosR <xhmikosr@gmail.com>2022-03-09 18:25:47 +0300
commitd4e87d28cdc1b5d053b4c08da737321ab4de2ff7 (patch)
tree86598cfcbd38cceff7f7b5df92c0e3fc419582f2 /js/src
parentdd93551914424e577176a6377e1614742aa1018c (diff)
Carousel: small refactoring, remove unnecessary checks
Diffstat (limited to 'js/src')
-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 0860622514..f37ded7c24 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
}