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

Add "list-inline-item" as a class name on LI elements in the AltDateWidget #3202

Merged
merged 2 commits into from
Feb 4, 2023

Conversation

danfunk
Copy link
Contributor

@danfunk danfunk commented Oct 18, 2022

…rap 4 docs: https://getbootstrap.com/docs/4.0/content/typography/#inline

Reasons for making this change

use list-inline-item for li items in the AltDateWidget, as per bootstrap 4 docs: https://getbootstrap.com/docs/4.0/content/typography/#inline

It is a minor change. I did run the tests to assure this does not break anything.

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

Before:
Screenshot 2023-02-03 at 4 19 44 PM

After:
Screenshot 2023-02-03 at 4 19 33 PM

@heath-freenome
Copy link
Member

@danfunk Can you add a test that verifies this change as well as updating the CHANGELOG.md file... Thanks!

heath-freenome added a commit to heath-freenome/react-jsonschema-form that referenced this pull request Feb 4, 2023
Fixes: rjsf-team#3424 by preventing the inclusion of undefined properties at the root level
- Updated `@rjsf/utils`, making `computeDefaults` helper in `getDefaultFormState()` to skip adding undefined values when `excludeObjectChildren` is set.
  - This basically supports adding an empty object
  - Updated the tests accordingly
- Updated the `CHANGELOG.md` accordingly
  - Also added information the changelog for PR rjsf-team#3202
@heath-freenome heath-freenome merged commit 65a7be9 into rjsf-team:main Feb 4, 2023
heath-freenome added a commit to heath-freenome/react-jsonschema-form that referenced this pull request Feb 4, 2023
Fixes: rjsf-team#3424 by preventing the inclusion of undefined properties at the root level
- Updated `@rjsf/utils`, making `computeDefaults()` helper in `getDefaultFormState()` to skip adding undefined values when `allowEmptyObject` is set.
  - Updated the `getDefaultFormState()` definition in the `ValidatorType` to add this new option
  - Updated the tests accordingly
- Updated `@rjsf/core`, switching the `excludeObjectChildren` with `allowEmptyObject` in `Form`
- Updated the documentation for `getDefaultFormState()` to add this new option
- Updated the `CHANGELOG.md` accordingly
  - Also added information the changelog for PR rjsf-team#3202
heath-freenome added a commit to heath-freenome/react-jsonschema-form that referenced this pull request Feb 5, 2023
Fixes: rjsf-team#3424 by preventing the inclusion of undefined properties at the root level
- Updated `@rjsf/utils`, making `computeDefaults()` helper in `getDefaultFormState()` to skip adding undefined values when `allowEmptyObject` is set.
  - Updated the `getDefaultFormState()` definition in the `ValidatorType` to add this new option
  - Updated the tests accordingly
- Updated `@rjsf/core`, switching the `excludeObjectChildren` with `allowEmptyObject` in `Form`
- Updated the documentation for `getDefaultFormState()` to add this new option
- Updated the `CHANGELOG.md` accordingly
  - Also added information the changelog for PR rjsf-team#3202
heath-freenome added a commit that referenced this pull request Feb 5, 2023
* Fix: Prevent undefined properties at the root level
Fixes: #3424 by preventing the inclusion of undefined properties at the root level
- Updated `@rjsf/utils`, making `computeDefaults()` helper in `getDefaultFormState()` to skip adding undefined values when `allowEmptyObject` is set.
  - Updated the `getDefaultFormState()` definition in the `ValidatorType` to add this new option
  - Updated the tests accordingly
- Updated `@rjsf/core`, switching the `excludeObjectChildren` with `allowEmptyObject` in `Form`
- Updated the documentation for `getDefaultFormState()` to add this new option
- Updated the `CHANGELOG.md` accordingly
  - Also added information the changelog for PR #3202

* - Responded to reviewer feedback
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.

2 participants