ソースを参照

Fixed sort bug when the field is 0

zhixin 5 年 前
コミット
93976906dc
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)