Skip to content

Commit 88062b7

Browse files
committed
allow to drop rows by user
1 parent a47276a commit 88062b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BootstrapTable.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,9 @@ class BootstrapTable extends React.Component {
375375
}
376376
}
377377

378-
handleDropRow() {
378+
handleDropRow(rowKeys) {
379379
let result;
380-
let dropRowKeys = this.store.getSelectedRowKeys();
380+
let dropRowKeys = rowKeys?rowKeys:this.store.getSelectedRowKeys();
381381
//add confirm befor the delete action
382382
if (dropRowKeys && dropRowKeys.length > 0) {
383383
if (!confirm('Are you sure want delete?')) {

0 commit comments

Comments
 (0)