Skip to content

Commit 4baaa2a

Browse files
committed
Fix structuring
1 parent 6f67f29 commit 4baaa2a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/table/table.component.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -720,8 +720,8 @@ export class Table implements AfterViewInit {
720720
constructor(protected elementRef: ElementRef, protected applicationRef: ApplicationRef, protected i18n: I18n) {}
721721

722722
ngAfterViewInit() {
723-
this.getTotalColumns();
724723
if (this.isDataGrid) {
724+
this.getTotalColumns();
725725
this.handleTabIndex();
726726
}
727727
}
@@ -925,9 +925,7 @@ export class Table implements AfterViewInit {
925925
tabbable.tabIndex = -1;
926926
});
927927
}
928-
Array.from<HTMLElement>(this.elementRef.nativeElement.querySelectorAll("td, th")).forEach(cell =>
929-
setTabIndex(cell, -1)
930-
);
928+
Array.from<HTMLElement>(this.elementRef.nativeElement.querySelectorAll("td, th")).forEach(cell => setTabIndex(cell, -1));
931929

932930
const rows = this.elementRef.nativeElement.firstElementChild.rows;
933931
if (Array.from(rows[0].querySelectorAll("th")).some(th => getFocusElementList(th, tabbableSelectorIgnoreTabIndex).length > 0)) {

0 commit comments

Comments
 (0)