ソースを参照

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

Dustin Utecht 3 年 前
コミット
b45fbdd479

+ 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 ||