Browse Source

Fix #2057

Example: https://jsfiddle.net/djhvscf/3f6xbaap/4/
Dennis Hernández 9 years ago
parent
commit
b3aa4b014f
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/bootstrap-table.js

+ 5 - 2
src/bootstrap-table.js

@@ -853,8 +853,11 @@
         });
         this.$container.off('click', '.th-inner').on('click', '.th-inner', function (event) {
             var target = $(this);
-            if (target.closest('.bootstrap-table')[0] !== that.$container[0])
-                return false;
+
+            if (that.options.detailView) {
+                if (target.closest('.bootstrap-table')[0] !== that.$container[0])
+                    return false;
+            }
 
             if (that.options.sortable && target.parent().data().sortable) {
                 that.onSort(event);