From f5978f95c1e8229562483c3b55ca649b8b4bcde5 Mon Sep 17 00:00:00 2001 From: AllenFang Date: Thu, 28 Jan 2016 23:42:58 +0800 Subject: [PATCH] fix #244 --- src/BootstrapTable.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/BootstrapTable.js b/src/BootstrapTable.js index fb76faf02..dc77bed1f 100644 --- a/src/BootstrapTable.js +++ b/src/BootstrapTable.js @@ -249,6 +249,13 @@ class BootstrapTable extends React.Component { } } + cleanSelected() { + this.store.setSelectedRowKey([]); + this.setState({ + selectedRowKeys: [] + }); + } + handleSort(order, sortField) { if (this.props.options.onSortChange) { this.props.options.onSortChange(sortField, order, this.props);