You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
I have problems with js in version 1.4.0.
In case when the dropdown initializes in create scenario - plugin works perfect.
In update scenario I have issue with js: props is null on line 25.
My main input is:
As I understood from .js file there is a problem with order of parameters on line 110:
self.processDep($el, value, initVal, callBack, depends);
Variable depends is passed as a callback function and will be not initialized in
setParams = function (props, vals) {}
When I rolled back to version 1.3.0 everything work great.
The text was updated successfully, but these errors were encountered:
Hi.
field($reqModel, 'fk_geoid')->widget(Select2::classname(), [ 'data' => \app\models\Geo::createOptGroupTree(\app\models\Geo::getValuesForCabinet()), 'options' => [ 'placeholder' => \Yii::t('langCabinet', 'Choose location'), 'prompt' => \Yii::t('langCabinet', 'Choose location'), //'multiple' => true, 'id' => 'customersreq-fk_geoid', ], 'pluginOptions' => [ 'allowClear' => true, 'maximumInputLength' => 5 ], ]); ?>I have problems with js in version 1.4.0.
In case when the dropdown initializes in create scenario - plugin works perfect.
In update scenario I have issue with js: props is null on line 25.
My main input is:
Dependent input is:
field($reqModel, 'fk_geotopid')->widget(kartik\widgets\DepDrop::classname(), [ 'data' => ['0' => 'set'], //---default value for update scenario 'options' => ['id' => 'customersreq-fk_geotopid', 'multiple' => true], 'type' => kartik\widgets\DepDrop::TYPE_SELECT2, 'pluginOptions' => [ 'depends' => ['customersreq-fk_geoid'], //'placeholder' => \Yii::t('langCabinet', 'Choose toponomical'), 'placeholder' => false, 'url' => \yii\helpers\Url::to(['/ajaxhelpers/gettopzones']), 'initialize' => true ] ]); ?>As I understood from .js file there is a problem with order of parameters on line 110:
self.processDep($el, value, initVal, callBack, depends);
Variable depends is passed as a callback function and will be not initialized in
setParams = function (props, vals) {}
When I rolled back to version 1.3.0 everything work great.
The text was updated successfully, but these errors were encountered: