diff options
Diffstat (limited to 'js/src/collapse.js')
-rw-r--r-- | js/src/collapse.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/src/collapse.js b/js/src/collapse.js index 590615b724..90bab0ec9a 100644 --- a/js/src/collapse.js +++ b/js/src/collapse.js @@ -7,7 +7,6 @@ import { defineJQueryPlugin, - TRANSITION_END, emulateTransitionEnd, getSelectorFromElement, getElementFromSelector, @@ -203,7 +202,7 @@ class Collapse extends BaseComponent { const scrollSize = `scroll${capitalizedDimension}` const transitionDuration = getTransitionDurationFromElement(this._element) - EventHandler.one(this._element, TRANSITION_END, complete) + EventHandler.one(this._element, 'transitionend', complete) emulateTransitionEnd(this._element, transitionDuration) this._element.style[dimension] = `${this._element[scrollSize]}px` @@ -253,7 +252,7 @@ class Collapse extends BaseComponent { this._element.style[dimension] = '' const transitionDuration = getTransitionDurationFromElement(this._element) - EventHandler.one(this._element, TRANSITION_END, complete) + EventHandler.one(this._element, 'transitionend', complete) emulateTransitionEnd(this._element, transitionDuration) } |