@navikt/ds-react
Version:
React components from the Norwegian Labour and Welfare Administration.
10 lines (9 loc) • 460 B
TypeScript
/**
* Walks up from the event target until TR/TH (row / header) or root.
* Returns true if any ancestor is inherently interactive, explicitly focusable,
* or has an interactive ARIA role.
* Used to decide whether a row click should be treated as a row selection
* or ignored because the user interacted with an embedded control.
*/
declare function isElementInteractiveTarget(element: HTMLElement | null): boolean;
export { isElementInteractiveTarget };