浏览代码

Merge pull request #6300 from wenzhixin/fix/6166

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

+ 2 - 2
src/extensions/filter-control/utils.js

@@ -149,11 +149,11 @@ export function cacheValues (that) {
     const fieldClass = getElementClass($field)
 
     if (that.options.height && !that.options.filterControlContainer) {
-      $field = $(`.fixed-table-header .${fieldClass}`)
+      $field = that.$el.find(`.fixed-table-header .${fieldClass}`)
     } else if (that.options.filterControlContainer) {
       $field = $(`${that.options.filterControlContainer} .${fieldClass}`)
     } else {
-      $field = $(`.${fieldClass}`)
+      $field = that.$el.find(`.${fieldClass}`)
     }
 
     that._valuesFilterControl.push({