diff options
| author | GeoSot <[email protected]> | 2022-03-02 02:16:51 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2022-03-09 17:25:47 +0200 |
| commit | d4e87d28cdc1b5d053b4c08da737321ab4de2ff7 (patch) | |
| tree | 86598cfcbd38cceff7f7b5df92c0e3fc419582f2 /js/src | |
| parent | dd93551914424e577176a6377e1614742aa1018c (diff) | |
| download | bootstrap-d4e87d28cdc1b5d053b4c08da737321ab4de2ff7.tar.xz bootstrap-d4e87d28cdc1b5d053b4c08da737321ab4de2ff7.zip | |
Carousel: small refactoring, remove unnecessary checks
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/carousel.js | 3 |
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 } |
