浏览代码

保留card-view的占位以兼容正确的事件绑定fieldIndex

push to develop branch
geeyan 10 年之前
父节点
当前提交
203f306a92
共有 1 个文件被更改,包括 2 次插入1 次删除
  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>';
                     }
                 }