Update BaseHtml.php
This commit is contained in:
parent
a32e10561b
commit
2e42954f28
@ -145,7 +145,9 @@ abstract class BaseHtml extends \yii\helpers\Html
|
||||
*/
|
||||
public static function error($model, $attribute, $options = []): string
|
||||
{
|
||||
static::addCssClass($options, 'invalid-feedback');
|
||||
if (!array_key_exists('class', $options)) {
|
||||
$options['class'] = ['invalid-feedback'];
|
||||
}
|
||||
|
||||
return parent::error($model, $attribute, $options);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user