UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

11 lines (10 loc) 377 B
"use client"; //#region packages/@mantine/core/src/core/utils/find-element-ancestor/find-element-ancestor.ts function findElementAncestor(element, selector) { let _element = element; while ((_element = _element.parentElement) && !_element.matches(selector)); return _element; } //#endregion export { findElementAncestor }; //# sourceMappingURL=find-element-ancestor.mjs.map