Browse Source

Merge pull request #1117 from dbkaplun/issue-1116

Don’t wait when applying searchText from options
文翼 10 years ago
parent
commit
9078e0385a
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/bootstrap-table.js

+ 1 - 4
src/bootstrap-table.js

@@ -1025,10 +1025,7 @@
 
             if (this.options.searchText !== '') {
                 $search.val(this.options.searchText);
-                clearTimeout(timeoutId); // doesn't matter if it's 0
-                timeoutId = setTimeout(function () {
-                    $search.trigger('keyup');
-                }, that.options.searchTimeOut);
+                that.onSearch({currentTarget: $search});
             }
         }
     };