Skip to content

Commit 2c6c90b

Browse files
authored
Merge pull request #14 from techtouch-inc/feat/fix-get-window
fix: getWindow が null を返さないように修正
2 parents d9525af + 00000aa commit 2c6c90b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/popper/src/utils/getWindow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
*/
66
export default function getWindow(element) {
77
const ownerDocument = element.ownerDocument;
8-
return ownerDocument ? ownerDocument.defaultView : window;
8+
return ownerDocument ? ownerDocument.defaultView || window : window;
99
}

0 commit comments

Comments
 (0)