You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of the way the Bootstrap style rules are set up, the way checkbox elements are currently structured results in the associated error text remaining hidden.
Right now, the resulting HTML structure when a checkbox form element has an associated error is:
Sorry @aljchristensen for the delay. I know it's too late, but at least the response is here 😓
You're right, I should document this known issue. The problem here is the library tries to have a consistent structure for the majority of the cases. The field constructor is who is charge of handling validations, feedback and helpers. And in that case the input itself is wrapped by a div, so this HTML is rendered.
So you need to make your own CSS hack using class .has-danger. In deed, that's one of the reasons I added has-* at form-group level. So you could try with something like:
Because of the way the Bootstrap style rules are set up, the way checkbox elements are currently structured results in the associated error text remaining hidden.
Right now, the resulting HTML structure when a checkbox form element has an associated error is:
but it needs to be
That is, the
invalid-feedback
div needs to be a subsequent sibling of theis-invalid
input.The relevant Bootstrap rules are
The text was updated successfully, but these errors were encountered: