mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-01 11:39:41 +08:00
Fixes #16716: The ability to filter by pressing the Enter key when the option $filterOnFocusOut off
This commit is contained in:
committed by
Alexander Makarov
parent
9ed7eaa998
commit
6e02082303
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user