Skip to content

Commit

Permalink
allow to drop rows by user
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Dec 6, 2015
1 parent a47276a commit 88062b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BootstrapTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,9 @@ class BootstrapTable extends React.Component {
}
}

handleDropRow() {
handleDropRow(rowKeys) {
let result;
let dropRowKeys = this.store.getSelectedRowKeys();
let dropRowKeys = rowKeys?rowKeys:this.store.getSelectedRowKeys();
//add confirm befor the delete action
if (dropRowKeys && dropRowKeys.length > 0) {
if (!confirm('Are you sure want delete?')) {
Expand Down

0 comments on commit 88062b7

Please sign in to comment.