Skip to content

Commit

Permalink
refactor(cdk-experimental/popover-edit): inconsistency in Angular 19
Browse files Browse the repository at this point in the history
Fixes some inconsistencies that showed up in the popover edit tests after the update to v19.
  • Loading branch information
crisbeto committed Aug 30, 2024
1 parent 2600e0d commit 5bd5be6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cdk-experimental/popover-edit/table-directives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
} from '@angular/core';
import {fromEvent, fromEventPattern, merge, Subject} from 'rxjs';
import {
debounceTime,
filter,
map,
mapTo,
Expand Down Expand Up @@ -136,6 +137,8 @@ export class CdkEditable implements AfterViewInit, OnDestroy {
// or below the table.
this._rendered
.pipe(
// Avoid some timing inconsistencies since Angular v19.
debounceTime(0),
// Optimization: ignore dom changes while focus is within the table as we already
// ensure that rows above and below the focused/active row are tabbable.
withLatestFrom(this.editEventDispatcher.editingOrFocused),
Expand Down

0 comments on commit 5bd5be6

Please sign in to comment.