aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorShohei Yoshida <[email protected]>2019-07-23 23:21:23 +0900
committerXhmikosR <[email protected]>2019-07-23 17:21:23 +0300
commitebb1eea52082d0909bf9013608a65028b6afca20 (patch)
tree9a67dc3abbfd94e6ecda2f132e1c50d3fe7e9f30 /js
parenta76c13589dc06df32d38100c8488aa1a0b90931c (diff)
downloadbootstrap-ebb1eea52082d0909bf9013608a65028b6afca20.tar.xz
bootstrap-ebb1eea52082d0909bf9013608a65028b6afca20.zip
Force reflow for fade-in animation (#29113)
Diffstat (limited to 'js')
-rw-r--r--js/src/toast/toast.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/src/toast/toast.js b/js/src/toast/toast.js
index 3ed02561a..04d3a05f8 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)