mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 13:02:24 +08:00
#15476: Fixed ActiveField initial error class in case setting it to input
This commit is contained in:
@ -770,7 +770,7 @@ class ActiveField extends Component
|
||||
$config['field'] = $this;
|
||||
if (isset($config['options'])) {
|
||||
if ($this->form->validationStateOn === ActiveForm::VALIDATION_STATE_ON_INPUT) {
|
||||
$this->addErrorClassIfNeeded($options);
|
||||
$this->addErrorClassIfNeeded($config['options']);
|
||||
}
|
||||
|
||||
$this->addAriaAttributes($config['options']);
|
||||
|
||||
Reference in New Issue
Block a user