Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActiveField does not show errors in custom-control fields #185

Open
dicrtarasov opened this issue Feb 24, 2020 · 1 comment
Open

ActiveField does not show errors in custom-control fields #185

dicrtarasov opened this issue Feb 24, 2020 · 1 comment
Labels

Comments

@dicrtarasov
Copy link

class TestModel extends Model
{
    public $myfield;
}

$model = new TestModel([ 'myfield' => 1 ]);
$model->addError('myfield', 'Test ERROR');
$form = ActiveForm::begin();

echo $form->field($model, 'myfield')->radioList([1 => 1, 2 => 2]);
echo $form->field($model, 'myfield');

Result is:
img

Text input field display errors, but radioLint is not.

@dicrtarasov
Copy link
Author

Same problem: #173

@samdark samdark added the type:bug Bug label Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants