Skip to content

Commit 5bd5be6

Browse files
committed
refactor(cdk-experimental/popover-edit): inconsistency in Angular 19
Fixes some inconsistencies that showed up in the popover edit tests after the update to v19.
1 parent 2600e0d commit 5bd5be6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cdk-experimental/popover-edit/table-directives.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
} from '@angular/core';
2222
import {fromEvent, fromEventPattern, merge, Subject} from 'rxjs';
2323
import {
24+
debounceTime,
2425
filter,
2526
map,
2627
mapTo,
@@ -136,6 +137,8 @@ export class CdkEditable implements AfterViewInit, OnDestroy {
136137
// or below the table.
137138
this._rendered
138139
.pipe(
140+
// Avoid some timing inconsistencies since Angular v19.
141+
debounceTime(0),
139142
// Optimization: ignore dom changes while focus is within the table as we already
140143
// ensure that rows above and below the focused/active row are tabbable.
141144
withLatestFrom(this.editEventDispatcher.editingOrFocused),

0 commit comments

Comments
 (0)