ソースを参照

fix bug with zero value

Alexey Kozenko 10 年 前
コミット
fa1f8841ca

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

@@ -91,7 +91,7 @@
             iOpt = 0;
 
         for (; iOpt < options.length; iOpt++) {
-            if (options[iOpt].value == value) {
+            if (options[iOpt].value === value.toString()) {
                 //The value is nor valid to add
                 return false;
             }