Browse Source

Merge pull request #5889 from wenzhixin/fix/5476

fix/5476
文翼 4 years ago
parent
commit
87bec26de9

+ 1 - 1
site/docs/extensions/reorder-rows.md

@@ -108,7 +108,7 @@ if you want you can include the bootstrap-table-reorder-rows.css file to use the
 
    **Note: This option is mainly used to adapt to the `TableDnD` plugin. Under no special circumstances, please do not modify the default value.**
 
-- **Default:** `>tbody>tr>td`
+- **Default:** `>tbody>tr>td:not(.bs-checkbox)`
 
 ### useRowAttrFunc
 

+ 1 - 1
src/extensions/reorder-rows/bootstrap-table-reorder-rows.js

@@ -13,7 +13,7 @@ $.extend($.fn.bootstrapTable.defaults, {
   onDragStyle: null,
   onDropStyle: null,
   onDragClass: 'reorder_rows_onDragClass',
-  dragHandle: '>tbody>tr>td',
+  dragHandle: '>tbody>tr>td:not(.bs-checkbox)',
   useRowAttrFunc: false,
   // eslint-disable-next-line no-unused-vars
   onReorderRowsDrag (row) {