浏览代码

removed redundant init value and remove html if the search value was
selected from a select

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

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

@@ -295,7 +295,11 @@ $.BootstrapTable = class extends $.BootstrapTable {
   }
 
   isValueExpected (searchValue, value, column, key) {
-    let tmpItemIsExpected = false
+    let tmpItemIsExpected
+
+    if (column.filterControl === 'select') {
+      value = Utils.removeHTML(value.toString().toLowerCase())
+    }
 
     if (
       column.filterStrictSearch ||