From eaec4dfa7e21035d63ccaa957bb01341bad38188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87a=C4=9Fatay=20=C3=87ivici?= Date: Tue, 11 Sep 2018 14:38:04 +0300 Subject: [PATCH] Fixed #554 --- src/components/datatable/TableBody.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/datatable/TableBody.js b/src/components/datatable/TableBody.js index 1b677a3504..8f8d191630 100644 --- a/src/components/datatable/TableBody.js +++ b/src/components/datatable/TableBody.js @@ -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 {