-
Notifications
You must be signed in to change notification settings - Fork 176
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
activeControlGroup without has-error class support #310
Comments
This fix works for me:
At the end of activeControlGroup method of the TbHtml class. |
What happens when you just use TbHtml::activeTextField()? I'm not sure if activeControlGroup() is meant to be called directly. |
It adds class error to the input field but it's not compatible with bootstrap. It should look like this: ` Input with error |
It works as expected when using a TbForm or TbActiveForm. Your view code for example calls As these are valid workarounds, it still looks like you found an inconsistency in the API. |
@fedek6 maybe you can create a PR to fix this issue so that we can merge it into the project? |
Hi,
When there is error in a field activeControlGroup does not add has-error CSS class to it's container or print error message below.
echo TbHtml::activeControlGroup(TbHtml::INPUT_TYPE_TEXT, $model, 'username' );
Maybe I'm doing something wrong?
Variable
$errorCss
is not used anywhere across TbHtml class.The text was updated successfully, but these errors were encountered: