UNPKG

@fluentui/dom-utilities

Version:

DOM utilities for use within Fluent web components

8 lines (7 loc) 430 B
/** * Finds the first parent element where the matchFunction returns true * @param element - element to start searching at * @param matchFunction - the function that determines if the element is a match * @returns the matched element or null no match was found */ export declare function findElementRecursive(element: HTMLElement | null, matchFunction: (element: HTMLElement) => boolean, doc?: Document): HTMLElement | null;