Browse Source

Removed return key validation for select

This shall fix the issue of select filter not working, if we enable filter on enter key option
sekarpdkt 5 years ago
parent
commit
96d7d45c63
1 changed files with 0 additions and 6 deletions
  1. 0 6
      src/extensions/filter-control/bootstrap-table-filter-control.js

+ 0 - 6
src/extensions/filter-control/bootstrap-table-filter-control.js

@@ -412,13 +412,7 @@ const UtilsFilterControl = {
       })
 
       UtilsFilterControl.getControlContainer(that).off('change', 'select').on('change', 'select', ({currentTarget, keyCode}) => {
-        if (that.options.searchOnEnterKey && keyCode !== 13) {
-          return
-        }
 
-        if ($.inArray(keyCode, [37, 38, 39, 40]) > -1) {
-          return
-        }
 
         const $select = $(currentTarget)
         const value = $select.val()