Uncaught TypeError: Cannot read property 'clientHeight' of undefined (like closed issue #22)
Closed this issue · 4 comments
I've got this problem too.
For example with plugin Fancybox.
Page: http://htmlstream.com/preview/unify-v1.9.4/feature_gallery.html
- click on first image;
- click again to get next image;
- press various keys;
smoothScroll.js:336 Uncaught TypeError: Cannot read property 'clientHeight' of undefined
In latest version of smoothscroll - same result.
Tested on Chrome 50.0.2661.102 (got similar result on Safari, but not in that particular case)
Find this line
var elem = overflowingAncestor(activeElement);
and change it to
var elem = overflowingAncestor(document.activeElement);
+1
Just put smoothscroll on my site and now getting errors reported to me in my monitoring.
TypeError: Cannot read property 'clientHeight' of undefined
at keydown (/ajax/libs/smoothscroll/1.4.4/SmoothScroll.min.js:1:5233)
this will be fixed in the latest version. thanks!
Find this line
var elem = overflowingAncestor(activeElement);
and change it to
var elem = overflowingAncestor(document.activeElement);
I am having the same problem in my website. I tried this and it did not work.