浏览代码

Merge pull request #5432 from wenzhixin/fix/5427

fix/5427
文翼 4 年之前
父节点
当前提交
350a995274
共有 1 个文件被更改,包括 0 次插入10 次删除
  1. 0 10
      src/bootstrap-table.js

+ 0 - 10
src/bootstrap-table.js

@@ -391,16 +391,6 @@ class BootstrapTable {
       }
     })
 
-    this.$header.children().children().off('keypress').on('keypress', e => {
-      if (this.options.sortable && $(e.currentTarget).data().sortable) {
-        const code = e.keyCode || e.which
-
-        if (code === 13) { // Enter keycode
-          this.onSort(e)
-        }
-      }
-    })
-
     const resizeEvent = Utils.getEventName('resize.bootstrap-table', this.$el.attr('id'))
 
     $(window).off(resizeEvent)