浏览代码

Set filterDefault only if the field is not already set (#6325)

Dustin Utecht 3 年之前
父节点
当前提交
e120205bfa
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/extensions/filter-control/utils.js

+ 3 - 1
src/extensions/filter-control/utils.js

@@ -411,7 +411,9 @@ export function createControls (that, header) {
         that.filterColumnsPartial = {}
         that.filterColumnsPartial = {}
       }
       }
 
 
-      that.filterColumnsPartial[column.field] = column.filterDefault
+      if (!(column.field in that.filterColumnsPartial)) {
+        that.filterColumnsPartial[column.field] = column.filterDefault
+      }
     }
     }
 
 
     $.each(header.find('th'), (_, th) => {
     $.each(header.find('th'), (_, th) => {