MCPcopy Create free account
hub / github.com/angular/components / finishCurrentTooltipAnimation

Function finishCurrentTooltipAnimation

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

Source from the content-addressed store, hash-verified

1706}
1707
1708function finishCurrentTooltipAnimation(overlayContainer: HTMLElement, isVisible: boolean) {
1709 const tooltip = overlayContainer.querySelector('.mat-mdc-tooltip')!;
1710 const event = createFakeEvent('animationend');
1711 Object.defineProperty(event, 'animationName', {
1712 get: () => `mat-mdc-tooltip-${isVisible ? 'show' : 'hide'}`,
1713 });
1714 dispatchEvent(tooltip, event);
1715}

Callers 1

tooltip.spec.tsFile · 0.85

Calls 2

createFakeEventFunction · 0.85
dispatchEventFunction · 0.50

Tested by

no test coverage detected