ソースを参照

Fixed updateRow with customSearch and sortReset bug

zhixin 5 年 前
コミット
fccd519ed4
1 ファイル変更4 行追加0 行削除
  1. 4 0
      src/bootstrap-table.js

+ 4 - 0
src/bootstrap-table.js

@@ -838,6 +838,10 @@ class BootstrapTable {
       if (this.options.customSearch) {
         this.data = Utils.calculateObjectValue(this.options, this.options.customSearch,
           [this.options.data, this.searchText, this.filterColumns])
+
+        if (this.options.sortReset) {
+          this.unsortedData = [...this.data]
+        }
         return
       }