yiisoft / yii2

Yii 2: The Fast, Secure and Professional PHP Framework
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
14.24k stars 6.91k forks source link

Arrow function(=>) in "yii.activeForm.js" cause syntax error in IE11 #19056

Closed russeljo closed 2 years ago

russeljo commented 2 years ago

vendor/yiisoft/yii2/assets/yii.activeForm.js

var disabled = $input.toArray().reduce((result, next) => result && $(next).is(':disabled'), true);

please, change it to compatible variant

var disabled = $input.toArray().reduce(
                    function(result, next){ return (result && $(next).is(':disabled')) }
                    ,true);
bizley commented 2 years ago

It was already fixed and released. Update your Yii.