diff options
| author | Shohei Yoshida <[email protected]> | 2019-07-23 23:21:23 +0900 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-07-23 17:21:23 +0300 |
| commit | ebb1eea52082d0909bf9013608a65028b6afca20 (patch) | |
| tree | 9a67dc3abbfd94e6ecda2f132e1c50d3fe7e9f30 /js/src | |
| parent | a76c13589dc06df32d38100c8488aa1a0b90931c (diff) | |
| download | bootstrap-ebb1eea52082d0909bf9013608a65028b6afca20.tar.xz bootstrap-ebb1eea52082d0909bf9013608a65028b6afca20.zip | |
Force reflow for fade-in animation (#29113)
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/toast/toast.js | 2 |
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) |
