Fix #18650: Refactor framework/assets/yii.activeForm.js arrow function into traditional function for IE11 compatibility

This commit is contained in:
Marco van 't Wout
2021-05-12 17:11:39 +02:00
committed by GitHub
parent 29777af4c2
commit 7e323ba07c
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Yii Framework 2 Change Log
2.0.43 under development 2.0.43 under development
------------------------ ------------------------
- Bug #18650: Refactor `framework/assets/yii.activeForm.js` arrow function into traditional function for IE11 compatibility (marcovtwout)
- Enh #18628: Added strings "software", and "hardware" to `$specials` array in `yii\helpers\BaseInflector` (kjusupov) - Enh #18628: Added strings "software", and "hardware" to `$specials` array in `yii\helpers\BaseInflector` (kjusupov)

View File

@ -329,7 +329,9 @@
this.$form = $form; this.$form = $form;
var $input = findInput($form, this); var $input = findInput($form, this);
var disabled = $input.toArray().reduce((result, next) => result && $(next).is(':disabled'), true); var disabled = $input.toArray().reduce(function(result, next) {
return result && $(next).is(':disabled');
}, true);
if (disabled) { if (disabled) {
return true; return true;
} }