ソースを参照

remove unnecessary code

Dustin Utecht 5 年 前
コミット
f66ade145b
1 ファイル変更0 行追加10 行削除
  1. 0 10
      src/bootstrap-table.js

+ 0 - 10
src/bootstrap-table.js

@@ -381,16 +381,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)