From 3f8825f983c1a0a7a9e9549159e0d85db2a2071a Mon Sep 17 00:00:00 2001 From: Umidbek Karimov Date: Tue, 8 Sep 2015 18:02:54 +0500 Subject: [PATCH] Update table.jsx [Table] onRowSelection return 'none' string on unselect all --- src/table/table.jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/table/table.jsx b/src/table/table.jsx index 5e2d00af9bffc1..8e98c478140ca2 100644 --- a/src/table/table.jsx +++ b/src/table/table.jsx @@ -207,7 +207,14 @@ let Table = React.createClass({ }, _onSelectAll() { - if (this.props.onRowSelection && !this.state.allRowsSelected) this.props.onRowSelection('all'); + if (this.props.onRowSelection) { + if (!this.state.allRowsSelected) { + this.props.onRowSelection('all'); + } else { + this.props.onRowSelection('none'); + } + } + this.setState({allRowsSelected: !this.state.allRowsSelected}); },