Fixes #16716: The ability to filter by pressing the Enter key when the option $filterOnFocusOut off

This commit is contained in:
Evgeniy Moiseenko
2018-09-28 15:36:44 +03:00
committed by Alexander Makarov
parent 9ed7eaa998
commit 6e02082303
3 changed files with 37 additions and 3 deletions

View File

@ -83,9 +83,6 @@
var $e = $(this);
var settings = $.extend({}, defaults, options || {});
var id = $e.attr('id');
if (!settings.filterOnFocusOut) {
return false;
}
if (gridData[id] === undefined) {
gridData[id] = {};
}
@ -108,6 +105,9 @@
return;
}
}
if (!settings.filterOnFocusOut && event.type !== 'keydown') {
return false;
}
methods.applyFilter.apply($e);