mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 22:39:52 +08:00
yii.activeForm.js: input onBlur event forces field validation
This commit is contained in:
committed by
SilverFire - Dmitry Naumenko
parent
cd87d67f34
commit
88241f24f3
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user