From: Shohei Yoshida Date: Tue, 23 Jul 2019 14:21:23 +0000 (+0900) Subject: Force reflow for fade-in animation (#29113) X-Git-Tag: v5.0.0-alpha1~932 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebb1eea52082d0909bf9013608a65028b6afca20;p=thirdparty%2Fbootstrap.git Force reflow for fade-in animation (#29113) --- diff --git a/js/src/toast/toast.js b/js/src/toast/toast.js index 3ed02561a8..04d3a05f80 100644 --- a/js/src/toast/toast.js +++ b/js/src/toast/toast.js @@ -10,6 +10,7 @@ import { TRANSITION_END, emulateTransitionEnd, getTransitionDurationFromElement, + reflow, typeCheckConfig } from '../util/index' import Data from '../dom/data' @@ -114,6 +115,7 @@ class Toast { } this._element.classList.remove(ClassName.HIDE) + reflow(this._element) this._element.classList.add(ClassName.SHOWING) if (this._config.animation) { const transitionDuration = getTransitionDurationFromElement(this._element)