-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Change boolean custom tag to bsPrefix. #3049
Change boolean custom tag to bsPrefix. #3049
Conversation
@@ -82,7 +82,7 @@ const SelectWidget = ({ | |||
</Form.Label> | |||
<Form.Control | |||
as="select" | |||
custom | |||
bsPrefix="custom-select" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I just removed custom
, the tests failed because the className
changed from custom-select
to form-control
. The bsPrefix
prop seems to be the way to approach this, based on the docs at https://react-bootstrap.github.io/forms/form-control/#form-control-props
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two things... First, it would be better to put this change into the upcoming rjsf-v5
beta branch, so can you please rebase and do it there? Second, please reference the issue you are fixing in the CHANGELOG.md
.
…roper location
* Reimplemented fix in #2198 in @rjsf/utils package - The fix in #2198 needed to be refactored into the new `@rjsf/utils` package - Replicated the fix into the `getDefaultFormState.ts` file - Replicated the additional tests into `getDefaultFormStateTest.ts` and `oneOf_test.js` - Updated the `CHANGELOG.md` with the note for this fix along with the notes for PR #3094 * - Updated `CHANGELOG.md` for PR #2925 * - Fixed up `CHANGELOG.md` to move note from #3049 into the proper location
Reasons for making this change
fixes #2648
Checklist
npm run test:update
to update snapshots, if needed.