Skip to content

Commit 1b9000e

Browse files
committed
fix(positionFns): Fix "getComputedStyle" of undefined, #190, #186
1 parent d9934c3 commit 1b9000e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/positionFns.es6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function getBoundPosition(draggable: Draggable, x: number, y: number): [n
1818

1919
if (typeof bounds === 'string') {
2020
const {ownerDocument} = node;
21-
const ownerWindow = node.defaultView;
21+
const ownerWindow = ownerDocument.defaultView;
2222
let boundNode;
2323
if (bounds === 'parent') {
2424
boundNode = node.parentNode;

0 commit comments

Comments
 (0)