Fixed #3571 - DataTable: tabbing error with row select and expanded rows enabled

pull/3594/head
Tuğçe Küçükoğlu 2023-01-26 15:59:45 +03:00
parent 142789ba42
commit d900c85670
1 changed files with 1 additions and 1 deletions

View File

@ -1117,7 +1117,7 @@ export default {
if (firstSelectedRow) { if (firstSelectedRow) {
firstSelectedRow.tabIndex = '0'; firstSelectedRow.tabIndex = '0';
focusedItem !== firstSelectedRow && (focusedItem.tabIndex = '-1'); focusedItem && focusedItem !== firstSelectedRow && (focusedItem.tabIndex = '-1');
} else { } else {
rows[0].tabIndex = '0'; rows[0].tabIndex = '0';
focusedItem !== rows[0] && (rows[rowIndex].tabIndex = '-1'); focusedItem !== rows[0] && (rows[rowIndex].tabIndex = '-1');