浏览代码

fix bug with zero value

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

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