Skip to content

Commit

Permalink
Fix #4244: BodyRow add rowindex to key (#4246)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Apr 20, 2023
1 parent 1ba9100 commit dddd711
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 @@ -298,7 +298,7 @@ export const BodyRow = React.memo((props) => {
const createContent = () => {
return props.columns.map((col, i) => {
if (shouldRenderBodyCell(props.value, col, props.index)) {
const key = `${getColumnProp(col, 'columnKey') || getColumnProp(col, 'field')}_${i}`;
const key = `${props.rowIndex}_${getColumnProp(col, 'columnKey') || getColumnProp(col, 'field')}_${i}`;
const rowSpan = props.rowGroupMode === 'rowspan' ? calculateRowGroupSize(props.value, col, props.index) : null;

return (
Expand Down

0 comments on commit dddd711

Please sign in to comment.