Skip to content

Commit 2c825c2

Browse files
committed
refactor: focus table on expand / collapse all
1 parent d7c5177 commit 2c825c2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

log-viewer/modules/components/calltree-view/CalltreeView.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ export class CalltreeView extends LitElement {
302302
}
303303
this.calltreeTable.blockRedraw();
304304
this._expandCollapseAll(this.calltreeTable.getRows(), true);
305+
this.calltreeTable.element?.querySelector<HTMLElement>('.tabulator-tableholder')?.focus();
305306
this.calltreeTable.restoreRedraw();
306307
}
307308

@@ -311,6 +312,7 @@ export class CalltreeView extends LitElement {
311312
}
312313
this.calltreeTable.blockRedraw();
313314
this._expandCollapseAll(this.calltreeTable.getRows(), false);
315+
this.calltreeTable.element?.querySelector<HTMLElement>('.tabulator-tableholder')?.focus();
314316
this.calltreeTable.restoreRedraw();
315317
}
316318

0 commit comments

Comments
 (0)