mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Force reflow for fade-in animation (#29113)
This commit is contained in:
parent
a76c13589d
commit
ebb1eea520
1 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,7 @@ import {
|
||||||
TRANSITION_END,
|
TRANSITION_END,
|
||||||
emulateTransitionEnd,
|
emulateTransitionEnd,
|
||||||
getTransitionDurationFromElement,
|
getTransitionDurationFromElement,
|
||||||
|
reflow,
|
||||||
typeCheckConfig
|
typeCheckConfig
|
||||||
} from '../util/index'
|
} from '../util/index'
|
||||||
import Data from '../dom/data'
|
import Data from '../dom/data'
|
||||||
|
@ -114,6 +115,7 @@ class Toast {
|
||||||
}
|
}
|
||||||
|
|
||||||
this._element.classList.remove(ClassName.HIDE)
|
this._element.classList.remove(ClassName.HIDE)
|
||||||
|
reflow(this._element)
|
||||||
this._element.classList.add(ClassName.SHOWING)
|
this._element.classList.add(ClassName.SHOWING)
|
||||||
if (this._config.animation) {
|
if (this._config.animation) {
|
||||||
const transitionDuration = getTransitionDurationFromElement(this._element)
|
const transitionDuration = getTransitionDurationFromElement(this._element)
|
||||||
|
|
Loading…
Add table
Reference in a new issue