Update ActiveField.php

This commit is contained in:
Anton 2021-12-02 11:17:12 +03:00 committed by GitHub
parent 6f47a8ac22
commit fdbe447ce2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -431,7 +431,6 @@ class ActiveField extends \yii\widgets\ActiveField
if ($this->form->layout === ActiveForm::LAYOUT_INLINE) {
Html::removeCssClass($this->labelOptions, 'visually-hidden');
}
Html::removeCssClass($options, 'form-control');
Html::addCssClass($options, ['widget' => 'form-select']);
return parent::listBox($items, $options);
@ -445,7 +444,6 @@ class ActiveField extends \yii\widgets\ActiveField
if ($this->form->layout === ActiveForm::LAYOUT_INLINE) {
Html::removeCssClass($this->labelOptions, 'visually-hidden');
}
Html::removeCssClass($options, 'form-control');
Html::addCssClass($options, ['widget' => 'form-select']);
return parent::dropdownList($items, $options);
@ -524,7 +522,6 @@ class ActiveField extends \yii\widgets\ActiveField
*/
public function rangeInput(array $options = [])
{
Html::removeCssClass($options, 'form-control');
Html::addCssClass($options, ['widget' => 'form-range']);
return $this->input('range', $options);