浏览代码

use the existing function to trigger search

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

+ 1 - 3
src/extensions/filter-control/bootstrap-table-filter-control.js

@@ -462,9 +462,7 @@ const UtilsFilterControl = {
       }
 
       if (that.options.sidePagination !== 'server') {
-        header.find('[class*=\'bootstrap-table-filter-control\']').each((k, input) => {
-          $(input).trigger('change')
-        })
+        that.triggerSearch()
       }
 
     } else {