Browse Source

Fix multiple search bug

zhixin 6 years ago
parent
commit
62dfe6a352
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/bootstrap-table.js

+ 4 - 0
src/bootstrap-table.js

@@ -681,6 +681,10 @@ class BootstrapTable {
         $(currentTarget).val(text)
         $(currentTarget).val(text)
       }
       }
 
 
+      if (this.searchText === text) {
+        return
+      }
+
       this.searchText = text
       this.searchText = text
       this.options.searchText = text
       this.options.searchText = text
     }
     }