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
Agreed, this would be rad. It won't be possible for custom file inputs though; their overall styling requires markup that features a <label> wrapping around an <input>.
For example, .invalid-feedback elements do not show up when they're immediately after .form-control-file.is-invalid elements, but they do when after .form-control.is-invalid elements.
In fact this was reported in #24831 but I think the fix there only fixed the situation for custom file inputs, rather than the standard ones.
Activity
mdo commentedon Jan 22, 2018
Agreed, this would be rad. It won't be possible for custom file inputs though; their overall styling requires markup that features a
<label>wrapping around an<input>.ysds commentedon Feb 2, 2018
@mdo We can not change the style of
<input type="file">, but how about adding support for validation feedback?philgyford commentedon Mar 21, 2018
This does seem like a bug.
For example,
.invalid-feedbackelements do not show up when they're immediately after.form-control-file.is-invalidelements, but they do when after.form-control.is-invalidelements.In fact this was reported in #24831 but I think the fix there only fixed the situation for custom file inputs, rather than the standard ones.
Here's a demonstration (copied from that issue but with Boostratp v4.0.0): https://jsbin.com/vodacon/edit?html,output