From e198618f82ff92f57e17feda417d0a7ac37f634a Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 24 Nov 2021 13:31:18 +0300 Subject: [PATCH] Update ActiveField.php --- src/ActiveField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ActiveField.php b/src/ActiveField.php index b78693a..3718087 100644 --- a/src/ActiveField.php +++ b/src/ActiveField.php @@ -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'])) {