ソースを参照

Improve the performance

Dennis Hernández 10 年 前
コミット
8f40eb4925
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -749,7 +749,7 @@
             }
             }
         });
         });
 
 
-        this.$container.find("th").off('keypress').on('keypress', function (event) {
+        this.$header.children().children().off('keypress').on('keypress', function (event) {
             if (that.options.sortable && $(this).data().sortable) {
             if (that.options.sortable && $(this).data().sortable) {
                 var code = event.keyCode || event.which;
                 var code = event.keyCode || event.which;
                 if(code == 13) { //Enter keycode
                 if(code == 13) { //Enter keycode