0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 16:54:24 +01:00
* Fix #17964

Some browsers are lazy when updating dom elements after transition effects. This can be fixed by reading element properties such as offsetHeight or offsetWidth. However, creating a function using the Function constructor just to access such element, results in a violation of Content Security Policy (where applied), which in turn crashes the application. This fix actually reverts to the way this was handled in v3 and should work as intended.
This commit is contained in:
Ilias 2016-10-30 23:47:14 +02:00 committed by Mark Otto
parent 5099a60ffe
commit bf43936377

View File

@ -121,7 +121,7 @@ const Util = (($) => {
},
reflow(element) {
new Function('bs', 'return bs')(element.offsetHeight)
return element.offsetHeight
},
triggerTransitionEnd(element) {