From 05ec61941241b3568b2b5a0c42155ea0a5c453ba Mon Sep 17 00:00:00 2001 From: Alexander Varwijk Date: Sun, 13 Dec 2015 18:05:31 +0100 Subject: [PATCH] Fix selectable=false still selects rows The select row function was still called for selectable=false. This patch fixes that. --- src/table/table-row.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/table/table-row.jsx b/src/table/table-row.jsx index 8fcd1b0ed56590..a5912c1a215e71 100644 --- a/src/table/table-row.jsx +++ b/src/table/table-row.jsx @@ -162,7 +162,7 @@ const TableRow = React.createClass({ }, _onRowClick(e) { - if (this.props.onRowClick) this.props.onRowClick(e, this.props.rowNumber); + if (this.props.selectable && this.props.onRowClick) this.props.onRowClick(e, this.props.rowNumber); }, _onRowHover(e) {