handleFocusOut function

Last updated: 2026-03-01T23:25:47.108Z

Metrics

LOC: 12 Complexity: 4 Params: 1

Signature

handleFocusOut(_e: FocusEvent): : void

Source Code

function handleFocusOut(_e: FocusEvent): void {
  hideTimeout = setTimeout(() => {
    const active = document.activeElement;
    if (
      active &&
      (active.closest(`#${ICON_ID}`) || active.closest(`#${RULE_POPUP_ID}`))
    )
      return;
    removeIcon();
    currentTarget = null;
  }, 200);
}

Dependencies (Outgoing)

graph LR handleFocusOut["handleFocusOut"] removeIcon["removeIcon"] handleFocusOut -->|calls| removeIcon style handleFocusOut fill:#dbeafe,stroke:#2563eb,stroke-width:2px click handleFocusOut "1b2dfc94a61e6955.html" click removeIcon "8711122051526789.html"
TargetType
removeIcon calls

No incoming dependencies.