Skip to content
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

Merged

Conversation

WillowP
Copy link
Contributor

@WillowP WillowP commented Aug 26, 2022

Reasons for making this change

fixes #2648

Checklist

  • I'm updating documentation
  • I'm adding or updating code
    • I've added and/or updated tests. I've run npm run test:update to update snapshots, if needed.
    • I've updated docs if needed
    • I've updated the changelog with a description of the PR
  • I'm adding a new feature
    • I've updated the playground with an example use of the feature

@@ -82,7 +82,7 @@ const SelectWidget = ({
</Form.Label>
<Form.Control
as="select"
custom
bsPrefix="custom-select"
Copy link
Contributor Author

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

Copy link
Member

@heath-freenome heath-freenome Aug 26, 2022

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.

@heath-freenome heath-freenome merged commit 3535ac7 into rjsf-team:master Sep 8, 2022
heath-freenome added a commit to heath-freenome/react-jsonschema-form that referenced this pull request Sep 8, 2022
heath-freenome added a commit that referenced this pull request Sep 8, 2022
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warning: Received true for a non-boolean attribute custom
2 participants