Home / Function/ getActiveElementDeep() — react Function Reference

getActiveElementDeep() — react Function Reference

Architecture documentation for the getActiveElementDeep() function in ReactInputSelection.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  7330d54b_88aa_2185_79a9_d580cfe8f0ac["getActiveElementDeep()"]
  61ae92ed_59ee_0d03_f7cc_6c7bd8c060f5["ReactInputSelection.js"]
  7330d54b_88aa_2185_79a9_d580cfe8f0ac -->|defined in| 61ae92ed_59ee_0d03_f7cc_6c7bd8c060f5
  4cfcf5ec_fe17_9b20_94a6_11e3787af2e1["getSelectionInformation()"]
  4cfcf5ec_fe17_9b20_94a6_11e3787af2e1 -->|calls| 7330d54b_88aa_2185_79a9_d580cfe8f0ac
  3ffa57aa_7550_476a_22f1_45c9f6827530["restoreSelection()"]
  3ffa57aa_7550_476a_22f1_45c9f6827530 -->|calls| 7330d54b_88aa_2185_79a9_d580cfe8f0ac
  73ae0fb8_77c3_8d4a_406e_dfdbac35c58c["getActiveElement()"]
  7330d54b_88aa_2185_79a9_d580cfe8f0ac -->|calls| 73ae0fb8_77c3_8d4a_406e_dfdbac35c58c
  165c8f8a_76d4_7e0b_11af_04ad59dc7f72["isSameOriginFrame()"]
  7330d54b_88aa_2185_79a9_d580cfe8f0ac -->|calls| 165c8f8a_76d4_7e0b_11af_04ad59dc7f72
  style 7330d54b_88aa_2185_79a9_d580cfe8f0ac fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-dom-bindings/src/client/ReactInputSelection.js lines 59–76

function getActiveElementDeep(containerInfo) {
  let win =
    containerInfo != null &&
    containerInfo.ownerDocument != null &&
    containerInfo.ownerDocument.defaultView != null
      ? containerInfo.ownerDocument.defaultView
      : window;
  let element = getActiveElement(win.document);
  while (element instanceof win.HTMLIFrameElement) {
    if (isSameOriginFrame(element)) {
      win = element.contentWindow;
    } else {
      return element;
    }
    element = getActiveElement(win.document);
  }
  return element;
}

Domain

Subdomains

Frequently Asked Questions

What does getActiveElementDeep() do?
getActiveElementDeep() is a function in the react codebase, defined in packages/react-dom-bindings/src/client/ReactInputSelection.js.
Where is getActiveElementDeep() defined?
getActiveElementDeep() is defined in packages/react-dom-bindings/src/client/ReactInputSelection.js at line 59.
What does getActiveElementDeep() call?
getActiveElementDeep() calls 2 function(s): getActiveElement, isSameOriginFrame.
What calls getActiveElementDeep()?
getActiveElementDeep() is called by 2 function(s): getSelectionInformation, restoreSelection.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free