Update ActiveField.php

This commit is contained in:
Anton 2021-11-24 13:31:18 +03:00 committed by GitHub
parent 2d87e3a45c
commit e198618f82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -290,7 +290,7 @@ class ActiveField extends \yii\widgets\ActiveField
Html::addCssClass($this->wrapperOptions, $this->horizontalCssClasses['offset']);
}
Html::removeCssClass($this->labelOptions, 'form-label');
unset($options['template']);
unset($options['template'], $options['switch']);
if ($enclosedByLabel) {
if (isset($options['label'])) {