(event: TransitionEvent)
| 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) => { |
nothing calls this directly
no test coverage detected