浏览代码

Merge pull request #5222 from wenzhixin/fix/5217

Fixed sort bug when the field is 0
Dustin Utecht 5 年之前
父节点
当前提交
0ad1223e3f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -2166,7 +2166,7 @@ class BootstrapTable {
       (
         this.searchText ||
         this.options.customSearch ||
-        this.options.sortName ||
+        this.options.sortName !== undefined ||
         !Utils.isEmptyObject(this.filterColumns) ||
         !Utils.isEmptyObject(this.filterColumnsPartial)
       ) && (!params || !params.unfiltered)