support.transition function breaks bootstrap nav collapse
-
Author:
This code in assets/js/other-shortcodes.js
// jQuery.support.transition // to verify that CSS3 transition is supported (or any of its browser-specific implementations) $.support.transition = (function () { var thisBody = document.body || document.documentElement, thisStyle = thisBody.style, support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined; return support; })(); // Animations is supported if ($.support.transition) { // AnimateBreaks the bootstrap nav collapse. Can you fix this asap please?
Replacing that with this:// jQuery.support.transition // to verify that CSS3 transition is supported (or any of its browser-specific implementations) function supportstrans() { var thisBody = document.body || document.documentElement, thisStyle = thisBody.style, support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined; return support; } // Animations is supported if (supporttrans()) { // AnimateFixes the issue. I have to go ahead and make that change to the js file for now, but it would be very much appreciated if you’d fix that in your next release.
Please reply as soon as possible and confirm, so that I know client sites won’t get messed up with the next update from you.
Thank you
The topic ‘support.transition function breaks bootstrap nav collapse’ is closed to new replies.