Open mwoess opened 7 months ago
I use tippy.js within the shadow dom of a custom element and need the callback to detect nested instances of tippy.
const instance = tippy(element, { // ... getNestedPopperElements: (): PopperElement[] => { return Array.from<TooltipComponent>(this.querySelectorAll('my-tooltip') || []) .map<PopperElement>(tooltip => tooltip.renderRoot.querySelector('[data-tippy-root]') as PopperElement) .filter(element => !!element); }, });
I use tippy.js within the shadow dom of a custom element and need the callback to detect nested instances of tippy.
Example