Thanks to visit codestin.com Credit goes to github.com
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 c8f573e commit edd9d8aCopy full SHA for edd9d8a
packages/react-dom-bindings/src/client/ReactInputSelection.js
@@ -57,10 +57,7 @@ function isSameOriginFrame(iframe) {
57
}
58
59
function getActiveElementDeep(containerInfo) {
60
- let win = window;
61
- if (containerInfo?.ownerDocument?.defaultView) {
62
- win = containerInfo.ownerDocument.defaultView
63
- }
+ let win = containerInfo?.ownerDocument?.defaultView ?? window;
64
let element = getActiveElement(win.document);
65
while (element instanceof win.HTMLIFrameElement) {
66
if (isSameOriginFrame(element)) {
0 commit comments