From 470adc3f169b0bbaa0edc2553249a2604270af0d Mon Sep 17 00:00:00 2001 From: Shohei Yoshida Date: Tue, 23 Jul 2019 23:21:23 +0900 Subject: [PATCH] Force reflow for fade-in animation (#29113) --- js/src/toast.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/src/toast.js b/js/src/toast.js index fd023e7021..ff375846aa 100644 --- a/js/src/toast.js +++ b/js/src/toast.js @@ -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)