mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-28 07:39:57 +02:00
Force reflow for fade-in animation (#29113)
This commit is contained in:
@@ -107,6 +107,7 @@ class Toast {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this._element.classList.remove(ClassName.HIDE)
|
this._element.classList.remove(ClassName.HIDE)
|
||||||
|
Util.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 = Util.getTransitionDurationFromElement(this._element)
|
const transitionDuration = Util.getTransitionDurationFromElement(this._element)
|
||||||
|
Reference in New Issue
Block a user