MCPcopy
hub / github.com/angular/components / finishCurrentTooltipAnimation

Function finishCurrentTooltipAnimation

src/material/tooltip/tooltip.spec.ts:1731–1738  ·  view source on GitHub ↗
(overlayContainer: HTMLElement, isVisible: boolean)

Source from the content-addressed store, hash-verified

1729}
1730
1731function finishCurrentTooltipAnimation(overlayContainer: HTMLElement, isVisible: boolean) {
1732 const tooltip = overlayContainer.querySelector('.mat-mdc-tooltip')!;
1733 const event = createFakeEvent('animationend');
1734 Object.defineProperty(event, 'animationName', {
1735 get: () => `mat-mdc-tooltip-${isVisible ? 'show' : 'hide'}`,
1736 });
1737 dispatchEvent(tooltip, event);
1738}

Callers 1

tooltip.spec.tsFile · 0.85

Calls 2

createFakeEventFunction · 0.85
dispatchEventFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…