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}); },