Browse Source

Fix logic when there is not any value in control

djhvscf 7 years ago
parent
commit
4698ea7df7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/extensions/filter-control/bootstrap-table-filter-control.js

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

@@ -674,13 +674,13 @@
                 timeoutId = 0;
 
             $.each(that.options.valuesFilterControl, function (i, item) {
-                hasValues = item.value !== '';
+                hasValues = hasValue ? true : item.value !== '';
                 item.value = '';
             });
 
             setValues(that);
 
-            //If there is not any value in the controls
+            //If there is not any value in the controls exit this method
             if(!hasValues) {
                 return;
             }