Open abelwamana opened 1 month ago
Hi. I am using Tagging Support mult-select for your widget SELECT2 as "multiple => true", but when i have a lote of itens/text it can not be select all (Marcar todos), it stay disabled. See my codifcation:
field($eventModel, 'participantes')->widget(Select2::classname(), [ 'data' => ArrayHelper::map(Contacto::find()->all(), 'email', function ($model) { return $model->nome . ' - ' . $model->instituicao; }), 'options' => ['placeholder' => 'Selecione os participantes...', 'multiple' => true, 'id' => 'select-participantes'], 'pluginOptions' => [ 'allowClear' => true, ], ]); ?>
I already found the solution, followed the error and changed the line: if (opts.length && opts[1]) to if (opts && opts.length && opts[1])
Hi. I am using Tagging Support mult-select for your widget SELECT2 as "multiple => true", but when i have a lote of itens/text it can not be select all (Marcar todos), it stay disabled. See my codifcation:
field($eventModel, 'participantes')->widget(Select2::classname(), [ 'data' => ArrayHelper::map(Contacto::find()->all(), 'email', function ($model) { return $model->nome . ' - ' . $model->instituicao; }), 'options' => ['placeholder' => 'Selecione os participantes...', 'multiple' => true, 'id' => 'select-participantes'], 'pluginOptions' => [ 'allowClear' => true, ], ]); ?>