Browse Source

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

Dustin Utecht 3 years ago
parent
commit
b45fbdd479
1 changed files with 5 additions and 1 deletions
  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 ||