aboutsummaryrefslogtreecommitdiff
path: root/js/src/carousel.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2020-12-10 16:54:50 +0200
committerGitHub <[email protected]>2020-12-10 16:54:50 +0200
commit1edec546cb28baf68691f0eb9e43997901359ba5 (patch)
tree215fa8b9ac5c943e08cef25e5a9234b07b9a4db0 /js/src/carousel.js
parent7e47b7ecc972a29997a0e38fd1fc126c51f2f703 (diff)
downloadbootstrap-1edec546cb28baf68691f0eb9e43997901359ba5.tar.xz
bootstrap-1edec546cb28baf68691f0eb9e43997901359ba5.zip
Remove `TRANSITION_END` from utils (#32394)
Diffstat (limited to 'js/src/carousel.js')
-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 b5923e34a..e1432d924 100644
--- a/js/src/carousel.js
+++ b/js/src/carousel.js
@@ -7,7 +7,6 @@
import {
defineJQueryPlugin,
- TRANSITION_END,
emulateTransitionEnd,
getElementFromSelector,
getTransitionDurationFromElement,
@@ -480,7 +479,7 @@ class Carousel extends BaseComponent {
const transitionDuration = getTransitionDurationFromElement(activeElement)
- EventHandler.one(activeElement, TRANSITION_END, () => {
+ EventHandler.one(activeElement, 'transitionend', () => {
nextElement.classList.remove(directionalClassName, orderClassName)
nextElement.classList.add(CLASS_NAME_ACTIVE)