浏览代码

Merge pull request #5209 from wenzhixin/fix/update-row

Fixed updateRow with customSearch and sortReset bug
Dustin Utecht 5 年之前
父节点
当前提交
3d2da2fa1f
共有 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
       }