Merge pull request #574 from ed9/master

Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'
This commit is contained in:
Valeriy 2017-05-12 09:57:49 +05:00 committed by GitHub
commit e13f3c2096

View File

@ -2001,6 +2001,10 @@
dateInputHasFixedAncestor = false;
forEachAncestorOf(dateInputElem, function (ancestorNode) {
if (ancestorNode === null) {
return false;
}
if (options.contentWindow.getComputedStyle(ancestorNode).getPropertyValue('position') === 'fixed') {
dateInputHasFixedAncestor = true;
return false;