rangeSlider
rangeSlider copied to clipboard
Cannot call offsetWidth of undefined
Hi,
I use IE11 on Windows 7 and I run it in the IE9 developer mode. When I resize the window I get lots of errors where I try to access a property of undefined.
I do not get the error on IE11 in IE10 developer mode, or any other usual browsers.
Everything seems to be working, just that error is getting spammed into the console.
Since I bundle your code inside a larger app, and the IE doesn't give me the correct line I am not sure whether the folloring is correct:
I believe this is where the error occurs. element seems to be undefined.
/**
* Check if a `element` is visible in the DOM
*
* @param {Element} element
* @return {Boolean}
*/
var isHidden = exports.isHidden = function isHidden(element) {
return element.offsetWidth === 0 || element.offsetHeight === 0 || element.open === false;
};
Sorry for the bad issue description, but I spent some time trying to find the excact spot or reason, but IE9 devtools just dont work.
Getting this error in latest Chrome too.
Still getting this now @Stryzhevskyi do you need help squashing issues?
@sidonaldson, help would be appreciated. But this particular issue seems like detached DOM or something similar (getHiddenParentNodes encounters on undefined).
I've created Issue template, but nobody uses it. Could you make copy of JSFiddle and reproduce error?
And IE 9. Really? Beginning January 12, 2016, only the most current version of Internet Explorer available for a supported operating system will receive technical support and security updates. Lifecycle FAQ—Internet Explorer.