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

Function finishCurrentTooltipAnimation

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

Source from the content-addressed store, hash-verified

1696}
1697
1698function finishCurrentTooltipAnimation(overlayContainer: HTMLElement, isVisible: boolean) {
1699 const tooltip = overlayContainer.querySelector('.mat-mdc-tooltip')!;
1700 const event = createFakeEvent('animationend');
1701 Object.defineProperty(event, 'animationName', {
1702 get: () => `mat-mdc-tooltip-${isVisible ? 'show' : 'hide'}`,
1703 });
1704 dispatchEvent(tooltip, event);
1705}

Callers 1

tooltip.spec.tsFile · 0.85

Calls 2

createFakeEventFunction · 0.85
dispatchEventFunction · 0.50

Tested by

no test coverage detected