Browse Source

Fixed detail view with filter click error (#6211)

文翼 3 years ago
parent
commit
fa5db329c1
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/bootstrap-table.js

+ 4 - 1
src/bootstrap-table.js

@@ -1790,7 +1790,10 @@ class BootstrapTable {
     this.$body.find('> tr[data-index] > td').off('click dblclick').on('click dblclick', e => {
     this.$body.find('> tr[data-index] > td').off('click dblclick').on('click dblclick', e => {
       const $td = $(e.currentTarget)
       const $td = $(e.currentTarget)
 
 
-      if ($td.find('.detail-icon').length) {
+      if (
+        $td.find('.detail-icon').length ||
+        $td.index() - Utils.getDetailViewIndexOffset(this.options) < 0
+      ) {
         return
         return
       }
       }