We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d9525af + 00000aa commit 2c6c90bCopy full SHA for 2c6c90b
packages/popper/src/utils/getWindow.js
@@ -5,5 +5,5 @@
5
*/
6
export default function getWindow(element) {
7
const ownerDocument = element.ownerDocument;
8
- return ownerDocument ? ownerDocument.defaultView : window;
+ return ownerDocument ? ownerDocument.defaultView || window : window;
9
}
0 commit comments