Browse Source

处理移动端输入内容后不触发查询的bug (#2472)

* 处理移动端输入内容后不触发查询的bug

* 优化blur监听代码
galaa2011 9 years ago
parent
commit
1cc8e8aed2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -1178,7 +1178,7 @@
 
             this.$toolbar.append(html.join(''));
             $search = this.$toolbar.find('.search input');
-            $search.off('keyup drop').on('keyup drop', function (event) {
+            $search.off('keyup drop blur').on('keyup drop blur', function (event) {
                 if (that.options.searchOnEnterKey && event.keyCode !== 13) {
                     return;
                 }