Skip to content

Commit

Permalink
Merge pull request #6920 from KumJungMin/fix/issue-6904
Browse files Browse the repository at this point in the history
fix(DataTable): update tabIndex when targetRow exists
  • Loading branch information
tugcekucukoglu authored Dec 5, 2024
2 parents 485bb8d + 8be5001 commit dd8aa25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primevue/src/datatable/DataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ export default {
const targetRow = event.currentTarget?.closest('tr[data-p-selectable-row="true"]');
focusedItem.tabIndex = '-1';
targetRow.tabIndex = '0';
if (targetRow) targetRow.tabIndex = '0';
}
},
onRowDblClick(e) {
Expand Down

0 comments on commit dd8aa25

Please sign in to comment.