Skip to content

Commit 8f40eb4

Browse files
committed
Improve the performance
1 parent 7e489d0 commit 8f40eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap-table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@
749749
}
750750
});
751751

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

0 commit comments

Comments
 (0)