]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Force reflow for fade-in animation (#29113)
authorShohei Yoshida <ysds.code@gmail.com>
Tue, 23 Jul 2019 14:21:23 +0000 (23:21 +0900)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 31 Jul 2019 08:37:39 +0000 (11:37 +0300)
js/src/toast.js

index fd023e7021dcf4cd9d5b6f9caa495232b1f2e473..ff375846aa8250c42182b723812b6d47388f698b 100644 (file)
@@ -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)