-
Notifications
You must be signed in to change notification settings - Fork 162
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
Bootstrap 5: FormGroup does not show validation errors #1018
Comments
I found this problem too After approval of #1025 it will be reproducible by running bootstrap-samples and going to http://localhost:8080/validation/tooltip and submitting the form there |
Dunno! I don't remember a discussion about it! |
Great! So whoever makes the fix you can easily validate it by running samples with Start.java and browsing to http://localhost:8080/validation/tooltip |
Honestly it is not clear to me what is the problem and what to look for in that page. |
@martin-g when you clear the 'Required date' field and submit the form, it is showing the feedback not below the form input but instead somewhere half in the screen. |
OK! But adding |
Error component is generated correctly:
However error is not shown. That requires HTML/CSS hierarchy below and css selector that displays feedback is this
.was-validated :invalid ~ .invalid-feedback
- Wicket itself does not set html attributes, such asrequired
- btw. would it make sense to add it in Wicket 10.x or was there some reason why it is not like that?Looking at the Bootstrap selectors, another option is to add
.is-valid
or.is-invalid
css class to the.form-control
directly, which is what is done in #1017 and it seems to work nicely, not sure about how effective the solution is, though.The text was updated successfully, but these errors were encountered: