mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 06:37:55 +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;
 | 
					            $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']);
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user