Force reflow for fade-in animation (#29113)
This commit is contained in:
parent
e01103e3f9
commit
470adc3f16
1 changed files with 1 additions and 0 deletions
|
|
@ -107,6 +107,7 @@ class Toast {
|
|||
}
|
||||
|
||||
this._element.classList.remove(ClassName.HIDE)
|
||||
Util.reflow(this._element)
|
||||
this._element.classList.add(ClassName.SHOWING)
|
||||
if (this._config.animation) {
|
||||
const transitionDuration = Util.getTransitionDurationFromElement(this._element)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue