Skip to content

Commit cadff07

Browse files
committed
fix(table): sticky header bug
1 parent 27c2097 commit cadff07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/table/data-grid-focus.directive.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ export class DataGridFocus {
5757
switch (event.key) {
5858
case "Right": // IE specific value
5959
case "ArrowRight":
60-
if (element.nextElementSibling && Array.from(headerRow).indexOf(element.nextElementSibling) < headerRow.length - 1) {
60+
const firstBodyRow = rows[1].querySelectorAll("td");
61+
if (element.nextElementSibling && Array.from(headerRow).indexOf(element.nextElementSibling) < firstBodyRow.length) {
6162
event.preventDefault();
6263
this.columnIndex++;
6364
const nextSibling = element.nextElementSibling;

0 commit comments

Comments
 (0)