diff --git a/src/table/table.jsx b/src/table/table.jsx index c2bc79d3cd920e..52e3f4d3845332 100644 --- a/src/table/table.jsx +++ b/src/table/table.jsx @@ -235,7 +235,14 @@ const 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}); },