Merge pull request #22 from WinterSilence/patch-2

Fix name of method ActiveField::dropDownList()
This commit is contained in:
simialbi 2021-12-09 08:27:36 +01:00 committed by GitHub
commit 960529d8b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -439,14 +439,14 @@ class ActiveField extends \yii\widgets\ActiveField
/**
* {@inheritdoc}
*/
public function dropdownList($items, $options = [])
public function dropDownList($items, $options = [])
{
if ($this->form->layout === ActiveForm::LAYOUT_INLINE) {
Html::removeCssClass($this->labelOptions, 'visually-hidden');
}
Html::addCssClass($options, ['widget' => 'form-select']);
return parent::dropdownList($items, $options);
return parent::dropDownList($items, $options);
}
/**