ソースを参照

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)