Skip to content

Commit

Permalink
Merge pull request #2054 from cannium/master
Browse files Browse the repository at this point in the history
[TableBody] Table click away should also trigger onRowSelection
  • Loading branch information
oliviertassinari committed Nov 4, 2015
2 parents aef950e + 045b630 commit dfb8363
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/table/table-body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const TableBody = React.createClass({
componentClickAway() {
if (this.props.deselectOnClickaway && this.state.selectedRows.length) {
this.setState({ selectedRows: [] });
if (this.props.onRowSelection) this.props.onRowSelection([]);
}
},

Expand Down

0 comments on commit dfb8363

Please sign in to comment.