Skip to content

Commit

Permalink
Fixed #554
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici authored and Çağatay Çivici committed Sep 11, 2018
1 parent 61b055b commit eaec4df
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/datatable/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,10 @@ export class TableBody extends Component {
}
else {
if(Array.isArray(this.props.children)) {
for(let col of this.props.children) {
if(col.props.selectionMode)
return true;
for(let i = 0; i < this.props.children.length; i++) {
if(this.props.children[i].props.selectionMode) {
return true;
}
}
}
else {
Expand Down

0 comments on commit eaec4df

Please sign in to comment.