The Select option for Disabled does not disable the item. The user can still click on the Select2 element, and a window with the parameters will open. Here is a disabled control that was opened by clicking on the text, not the down arrow button.

Here is my code:
<?= $form->field($model, 'billing_currency_id')->widget(Select2::className(), [
'data' => BillingCurrency::listIdCodes('','',true),
'disabled' => true,
'options' => ['disabled' => true,],
'pluginOptions'=>[
'allowClear'=>false,
'dropdownAutoWidth'=>true,
'disabled' => true,
], ]); ?>
When you click on the button with the down arrow, the control is closed, but clicking on the text area of the control opens the options window.
UPDATE
Found my own error - see the answer below.
source
share