yii.activeForm.js: input onBlur event forces field validation

This commit is contained in:
githubjeka
2015-12-02 23:38:00 +02:00
committed by SilverFire - Dmitry Naumenko
parent cd87d67f34
commit 88241f24f3
2 changed files with 2 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ Yii Framework 2 Change Log
- Bug #6876: Fixed RBAC migration MSSQL cascade problem (thejahweh)
- Bug #7627: Fixed `yii\widgets\ActiveField` to handle inputs validation with changed ID properly (dynasource, cebe)
- Bug #8723: Fixed `yii\helpers\VarDumper::export()` unable to export circle referenced objects with `Closure` (klimov-paul)
- Bug #9061: Fixed `yii.activeForm.js`: input onBlur event forces field validation (githubjeka)
- Bug #9108: Negative number resulted in no formatting when using `Formatter::asSize()` or `Formatter::asShortSize` (nxnx, cebe)
- Bug #9288: Fixed `FileHelper::createDirectory` directory creation to be concurrency friendly (dynasource)
- Bug #9314: Fixed `yii\rbac\DbManager::getPermissionsByUser()` not returning permissions directly assigned to a user (hesna)

View File

@@ -474,7 +474,7 @@
if (attribute.validateOnBlur) {
$input.on('blur.yiiActiveForm', function () {
if (attribute.status == 0 || attribute.status == 1) {
validateAttribute($form, attribute, !attribute.status);
validateAttribute($form, attribute, true);
}
});
}