aboutsummaryrefslogtreecommitdiff
path: root/js/src/util
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2019-03-16 16:10:23 +0200
committerXhmikosR <[email protected]>2019-03-18 01:11:05 +0200
commit08679ac0b5f34e1a1f1766be460e51bc1aa8d82a (patch)
tree2cef1cf8f17668c56b410c4c3e32a55bd4853af9 /js/src/util
parentf7c1b1e683976ee780faadddc4edc70b477aa01f (diff)
downloadbootstrap-08679ac0b5f34e1a1f1766be460e51bc1aa8d82a.tar.xz
bootstrap-08679ac0b5f34e1a1f1766be460e51bc1aa8d82a.zip
Add back support for IE 11
Diffstat (limited to 'js/src/util')
-rw-r--r--js/src/util/index.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/src/util/index.js b/js/src/util/index.js
index aea369558..5788c8749 100644
--- a/js/src/util/index.js
+++ b/js/src/util/index.js
@@ -71,7 +71,10 @@ const getTransitionDurationFromElement = element => {
}
const triggerTransitionEnd = element => {
- element.dispatchEvent(new Event(TRANSITION_END))
+ const evt = document.createEvent('HTMLEvents')
+
+ evt.initEvent(TRANSITION_END, true, true)
+ element.dispatchEvent(evt)
}
const isElement = obj => (obj[0] || obj).nodeType