Skip to content

Commit

Permalink
fix #480
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed May 29, 2016
1 parent eeba249 commit 4666523
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/BootstrapTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,9 @@ class BootstrapTable extends Component {

if (typeof result == 'undefined' || result !== false) {
if (isSelected) {
selectedRowKeys = this.store.getAllRowkey();
selectedRowKeys = Array.isArray(result) ?
result :
this.store.getAllRowkey();
}

this.store.setSelectedRowKey(selectedRowKeys);
Expand Down

0 comments on commit 4666523

Please sign in to comment.