-
Notifications
You must be signed in to change notification settings - Fork 352
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
Help text rendered inside input-group instead of form-group #444
Comments
Thanks for taking the time to report this. This is is a great bug report. In v2.7 of Whatever the reason, the code for help and error messages is basically in one method. We've been trying to minimize code changes as much as practical for the Bootstrap 4 version, so we rendered help and errors inside @ehutzelman would you like to take a shot at a PR for the |
Thanks for the quick response @lcreid. I've overbooked myself for March, but I could possibly pick this up in April if it remains unresolved. If anyone gets to it before then, more power to them :) |
No worries, @ehutzelman . @parkeryoung, if you're still looking to contribute, this might be a good bug to fix. Comment here or assign yourself near the top-right of this page so we know you're working on it. |
@lcreid I'll take a look at it. Edit - I don't believe I can assign myself either. |
The help text and error message are no longer rendered in the same place. The help text is now rendered in the `form-group` div instead of in the `input-group` div. Before we could render the error and help text together, however that has changed and they need to be separate. With this separation we need to check in the `generate_help` method to see if there are errors and if inline errors are being rendered; as we don't want to render the help text then.
The help text and error message are no longer rendered in the same place. The help text is now rendered in the `form-group` div instead of in the `input-group` div. Before we could render the error and help text together, however that has changed and they need to be separate. With this separation we need to check in the `generate_help` method to see if there are errors and if inline errors are being rendered; as we don't want to render the help text then.
There is a fix for this here, hope it suffices. |
…-group Issue #444 - Help text rendered in wrong place.
Fixed via #445 |
Thanks for the quick fix on this one @parkeryoung, much appreciated. |
The help text and error message are no longer rendered in the same place. The help text is now rendered in the `form-group` div instead of in the `input-group` div. Before we could render the error and help text together, however that has changed and they need to be separate. With this separation we need to check in the `generate_help` method to see if there are errors and if inline errors are being rendered; as we don't want to render the help text then.
I believe this may be related to #434
When using help text along with a prepend, the following structure is generated with the help text being rendered inside the input-group:
This is causing rending issues at some widths with the help text being rendered to the right of the input field instead of below it. When moving the help text outside of the input-group and inside the outer form-group, the issue seems to be fixed and the help text renders underneath the input field as expected:
The text was updated successfully, but these errors were encountered: