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

Method transitionDone

src/material/tabs/tab-body.ts:224–234  ·  view source on GitHub ↗
(event: TransitionEvent)

Source from the content-addressed store, hash-verified

222 this._ngZone.runOutsideAngular(() => {
223 const element = this._elementRef.nativeElement;
224 const transitionDone = (event: TransitionEvent) => {
225 if (event.target === this._contentElement?.nativeElement) {
226 this._elementRef.nativeElement.classList.remove('mat-tab-body-animating');
227
228 // Only fire the actual callback when a transition is fully finished,
229 // otherwise the content can jump around when the next transition starts.
230 if (event.type === 'transitionend') {
231 this._transitionDone();
232 }
233 }
234 };
235
236 this._eventCleanups = [
237 this._renderer.listen(element, 'transitionstart', (event: TransitionEvent) => {

Callers

nothing calls this directly

Calls 2

_transitionDoneMethod · 0.95
removeMethod · 0.65

Tested by

no test coverage detected