#15476: Fixed ActiveField initial error class in case setting it to input

This commit is contained in:
Alexander Makarov
2018-02-17 21:48:13 +03:00
parent 38774a30cc
commit 59b56b312f

View File

@ -770,7 +770,7 @@ class ActiveField extends Component
$config['field'] = $this; $config['field'] = $this;
if (isset($config['options'])) { if (isset($config['options'])) {
if ($this->form->validationStateOn === ActiveForm::VALIDATION_STATE_ON_INPUT) { if ($this->form->validationStateOn === ActiveForm::VALIDATION_STATE_ON_INPUT) {
$this->addErrorClassIfNeeded($options); $this->addErrorClassIfNeeded($config['options']);
} }
$this->addAriaAttributes($config['options']); $this->addAriaAttributes($config['options']);