ソースを参照

Search fields within the current table, not in the whole page

Dustin Utecht 3 年 前
コミット
da2d47a3d2
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({