mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fixes #6975: Pressing arrows while focused in inputs of Active Form with validateOnType
enabled no longer triggers validation
This commit is contained in:

committed by
Alexander Makarov

parent
2f5345b63c
commit
41e5a8a83b
@ -7,6 +7,7 @@ Yii Framework 2 Change Log
|
||||
- Bug #7529: Fixed `yii\web\Response::sendContentAsFile()` that was broken in 2.0.3 (samdark)
|
||||
- Bug #7603: Fixed escape characters in `FormatConverter` to work with unicode characters (maddoger, cebe)
|
||||
- Enh #6895: Added `ignoreCategories` config option for message command to ignore categories specified (samdark)
|
||||
- Enh #6975: Pressing arrows while focused in inputs of Active Form with `validateOnType` enabled no longer triggers validation (slinstj)
|
||||
- Enh #7488: Added `StringHelper::explode` to perform explode with trimming and skipping of empty elements (SilverFire, nineinchnick, creocoder, samdark)
|
||||
- Enh #7530: Improved default values for `yii\data\Sort` link labels in a `ListView` when used with an `ActiveDataProvider` (cebe)
|
||||
- Enh #7562: `yii help` now lists all sub-commands by default (callmez)
|
||||
|
@ -416,7 +416,10 @@
|
||||
});
|
||||
}
|
||||
if (attribute.validateOnType) {
|
||||
$input.on('keyup.yiiActiveForm', function () {
|
||||
$input.on('keyup.yiiActiveForm', function (e) {
|
||||
if ($.inArray(e.which, [16, 17, 18, 37, 38, 39, 40]) !== -1 ) {
|
||||
return;
|
||||
}
|
||||
if (attribute.value !== getValue($form, attribute)) {
|
||||
validateAttribute($form, attribute, false, attribute.validationDelay);
|
||||
}
|
||||
|
Reference in New Issue
Block a user