mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
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:
commit
e13f3c2096
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user