fix: update tabIndex when targetRow exists

pull/6920/head
KumJungMin 2024-12-04 19:18:56 +09:00
parent 1aa7a026e9
commit 8be5001bab
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) {