Skip to content

Commit 045b630

Browse files
committed
Table click away should also trigger onRowSelection
1 parent aef950e commit 045b630

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/table/table-body.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ const TableBody = React.createClass({
8585
componentClickAway() {
8686
if (this.props.deselectOnClickaway && this.state.selectedRows.length) {
8787
this.setState({ selectedRows: [] });
88+
if (this.props.onRowSelection) this.props.onRowSelection([]);
8889
}
8990
},
9091

0 commit comments

Comments
 (0)