Skip to content

Commit

Permalink
fix(platform): add loadingState recheck when async refocusing cell
Browse files Browse the repository at this point in the history
  • Loading branch information
CSEHoangV committed Oct 6, 2024
1 parent ff38ade commit f0b43b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/platform/src/lib/table/table.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2211,7 +2211,7 @@ export class TableComponent<T = any>
this._subscriptions.add(
this._tableService.tableLoading$.pipe(filter((loadingState) => !loadingState)).subscribe(() => {
setTimeout(() => {
if (this._tableHeaderResizer.focusedCellPosition && this._focusableGrid) {
if (this._tableHeaderResizer.focusedCellPosition && this._focusableGrid && !this.loadingState) {
this._focusableGrid.focusCell(this._tableHeaderResizer.focusedCellPosition);
}
});
Expand Down

0 comments on commit f0b43b9

Please sign in to comment.