<?= Select2::widget([
'name' => 'LoginForm[type]',
'hideSearch' => true,
'data' => ['username' => 'Логин', 'phone' => 'Телефон'],
'options' => ['id' => 'auth_type', 'class' => 'input select_type_auth']
]) ?>
/*<!--Устраняем баг Select2-->*/
$(document).ready(function () {
$.fn.modal.Constructor.prototype.enforceFocus = function () {
};
});
/*<!--/Устраняем баг Select2-->*/
$(".select2me-filter").select2("destroy");
... Here do option updates you need
$(".select2me-filter").select2();