Browse Source

Merge pull request #6300 from wenzhixin/fix/6166

fix/6166
Dustin Utecht 3 years ago
parent
commit
b1e3f157b1
1 changed files with 2 additions and 2 deletions
  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({