1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-11 16:14:04 +02:00

Modal plugin set _isTransitioning after the trigger of hide event

This commit is contained in:
Johann-S
2017-10-10 13:19:39 +02:00
parent da22bce2f0
commit 8e7ba02c5c
2 changed files with 28 additions and 6 deletions

View File

@@ -169,12 +169,6 @@ const Modal = (() => {
return
}
const transition = Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)
if (transition) {
this._isTransitioning = true
}
const hideEvent = $.Event(Event.HIDE)
$(this._element).trigger(hideEvent)
@@ -185,6 +179,12 @@ const Modal = (() => {
this._isShown = false
const transition = Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)
if (transition) {
this._isTransitioning = true
}
this._setEscapeEvent()
this._setResizeEvent()