@angular/material 18.2.9 → 18.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2022/tabs.mjs CHANGED
@@ -12,7 +12,7 @@ import * as i4 from '@angular/cdk/a11y';
12
12
  import { FocusKeyManager, CdkMonitorFocus } from '@angular/cdk/a11y';
13
13
  import { hasModifierKey, SPACE, ENTER } from '@angular/cdk/keycodes';
14
14
  import { SharedResizeObserver } from '@angular/cdk/observers/private';
15
- import { takeUntil, debounceTime, startWith, switchMap, skip, filter, distinctUntilChanged } from 'rxjs/operators';
15
+ import { takeUntil, debounceTime, startWith, switchMap, skip, filter } from 'rxjs/operators';
16
16
  import { CdkObserveContent } from '@angular/cdk/observers';
17
17
  import { DOCUMENT } from '@angular/common';
18
18
  import { trigger, state, style, transition, animate } from '@angular/animations';
@@ -1081,13 +1081,7 @@ class MatTabBody {
1081
1081
  changeDetectorRef.markForCheck();
1082
1082
  });
1083
1083
  }
1084
- // Ensure that we get unique animation events, because the `.done` callback can get
1085
- // invoked twice in some browsers. See https://github.com/angular/angular/issues/24084.
1086
- this._translateTabComplete
1087
- .pipe(distinctUntilChanged((x, y) => {
1088
- return x.fromState === y.fromState && x.toState === y.toState;
1089
- }))
1090
- .subscribe(event => {
1084
+ this._translateTabComplete.subscribe(event => {
1091
1085
  // If the transition to the center is complete, emit an event.
1092
1086
  if (this._isCenterPosition(event.toState) && this._isCenterPosition(this._position)) {
1093
1087
  this._onCentered.emit();