Browse Source

Merge pull request #1478 from geeyan/patch-3

保留card-view的占位以兼容正确的事件绑定fieldIndex
文翼 10 years ago
parent
commit
8ad402b09e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/bootstrap-table.js

+ 2 - 1
src/bootstrap-table.js

@@ -1523,7 +1523,8 @@
 
                     // Hide empty data on Card view when smartDisplay is set to true.
                     if (that.options.cardView && that.options.smartDisplay && value === '') {
-                        text = '';
+                        // Should set a placeholder for event binding correct fieldIndex
+                        text = '<div class="card-view"></div>';
                     }
                 }