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.
1 parent 103378b commit c33a479Copy full SHA for c33a479
packages/react-dom/src/client/ReactInputSelection.js
@@ -44,10 +44,10 @@ function getActiveElementDeep() {
44
let win = window;
45
let element = getActiveElement();
46
while (element instanceof win.HTMLIFrameElement) {
47
- // Accessing the contentDocument of a HTMLIframeElement can cause the browser
+ // Accessing the contentWindow of a HTMLIframeElement can cause the browser
48
// to throw, e.g. if it has a cross-origin src attribute
49
try {
50
- win = element.contentDocument.defaultView;
+ win = element.contentWindow;
51
} catch (e) {
52
return element;
53
}
0 commit comments