UNPKG

@fluentui/react-northstar

Version:
12 lines (11 loc) 473 B
/** * Determines if a click's coordinates are within the bounds of a node. * * @see https://github.com/Semantic-Org/Semantic-UI-React/pull/2384 * * @param node - A DOM node. * @param e - A SyntheticEvent or DOM Event. * @param target - A target document. * @param allowVirtualParents - A setting for `elementContains()`. */ export declare const doesNodeContainClick: (node: HTMLElement, e: MouseEvent, target?: Document, allowVirtualParents?: boolean) => boolean;