Skip to content

Commit

Permalink
Fix primefaces#6657: BodyRow fix tab key handling
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed May 23, 2024
1 parent cdce35a commit ebeae72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/datatable/BodyRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export const BodyRow = React.memo((props) => {
focusedItem && focusedItem !== firstSelectedRow && (focusedItem.tabIndex = '-1');
} else {
rows[0].tabIndex = '0';
focusedItem !== rows[0] && (rows[rowIndex].tabIndex = '-1');
focusedItem !== rows[0] && (rows[props.rowIndex].tabIndex = '-1');
}
}
};
Expand Down

0 comments on commit ebeae72

Please sign in to comment.