Closed hakunin closed 2 weeks ago
As a workaround, I copied the bootstrap css for form-control from here into my project and renamed the class to custom-select
.
@hakunin You need to make ALL of the RJSF packages be on the same major/minor versions. Please upgrade to the latest 5.x version and try this again.
That said, the SelectWidget
for the bootstrap-4
code has bsPrefix='custom-select'
added to the Form.Control
in the #3049 PR.
Sounds like it was a bad fix. Would you be willing to create a PR to remove bsPrefix
and update the test snapshots and the CHANGELOG.md
?
I can look into it on Monday, but I'm not sure about the background of the previous fix.
This issue has been automatically marked as possibly close because it has not had recent activity. It will be closed if no further activity occurs. Please leave a comment if this is still an issue for you. Thank you.
This issue was closed because of lack of recent activity. Reopen if you still need assistance.
Prerequisites
What theme are you using?
bootstrap-4
What is your question?
This looks like a bug / feature.
When I create a select box through AnyOf, the form element does not look correctly, because it does not have the
className="form-control"
but instead hasclassName="custom-select"
, which Bootstrap does not know.For example:
This does not seem to happen in the demo/documentation.
Is it a bug? Is there a way to fix this in the meantime?