MCPcopy Create free account
hub / github.com/reactjs/react-rails / getActiveElementDeep

Function getActiveElementDeep

lib/assets/react-source/development/react.js:10632–10647  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10630 }
10631
10632 function getActiveElementDeep() {
10633 var win = window;
10634 var element = getActiveElement();
10635
10636 while (element instanceof win.HTMLIFrameElement) {
10637 if (isSameOriginFrame(element)) {
10638 win = element.contentWindow;
10639 } else {
10640 return element;
10641 }
10642
10643 element = getActiveElement(win.document);
10644 }
10645
10646 return element;
10647 }
10648 /**
10649 * @ReactInputSelection: React input selection module. Based on Selection.js,
10650 * but modified to be suitable for react and has a couple of bug fixes (doesn't

Callers 2

getSelectionInformationFunction · 0.85
restoreSelectionFunction · 0.85

Calls 2

getActiveElementFunction · 0.85
isSameOriginFrameFunction · 0.85

Tested by

no test coverage detected