Skip to content

Commit

Permalink
Fixed #961 - Datatable rowGroup with rowSpan mode and pagination fail…
Browse files Browse the repository at this point in the history
…s on page break
  • Loading branch information
mertsincan committed Jul 19, 2019
1 parent a2c112b commit dcfbe91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/datatable/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ export class TableBody extends Component {
if(rowSpanGrouping) {
let rowSpanIndex = i;
let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.props.sortField);
let shouldCountRowSpan = (i === 0) || ObjectUtils.resolveFieldData(this.props.value[i - 1], this.props.sortField) !== currentRowFieldData;
let shouldCountRowSpan = (i === startIndex) || ObjectUtils.resolveFieldData(this.props.value[i - 1], this.props.sortField) !== currentRowFieldData ;

if(shouldCountRowSpan) {
let nextRowFieldData = currentRowFieldData;
Expand Down

0 comments on commit dcfbe91

Please sign in to comment.