Merge pull request #6920 from KumJungMin/fix/issue-6904

fix(DataTable): update tabIndex when targetRow exists
pull/6931/head
Tuğçe Küçükoğlu 2024-12-05 13:59:07 +03:00 committed by GitHub
commit dd8aa25cd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -849,7 +849,7 @@ export default {
const targetRow = event.currentTarget?.closest('tr[data-p-selectable-row="true"]'); const targetRow = event.currentTarget?.closest('tr[data-p-selectable-row="true"]');
focusedItem.tabIndex = '-1'; focusedItem.tabIndex = '-1';
targetRow.tabIndex = '0'; if (targetRow) targetRow.tabIndex = '0';
} }
}, },
onRowDblClick(e) { onRowDblClick(e) {