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

Adding feature to support const as default bug fix seeming like a regression #4381

Merged
merged 1 commit into from
Nov 15, 2024

Commits on Nov 13, 2024

  1. Adding feature to support const as default bug fix seeming like a reg…

    …ression
    
    Fixes rjsf-team#4344, rjsf-team#4361 and rjsf-team#4377
    - In `@rjsf/utils`:
      - Updated the `Experimental_DefaultFormStateBehavior` type to add new optional `constAsDefaults` prop with three choices
      - Updated `getDefaultFormState()` to respond to the new `constAsDefaults` feature to limit `const` as defaults based on the `never` or `skipOneOf` choices
      - Added tests for `getDefaultFormState()` to verify the new feature
    - In `@rjsf/core`:
      - Updated `SchemaField` to remove making the field readonly when const
    - In `playground`:
      - Updated `Header` to add support for `constAsDefaults`
    - Updated the `CHANGELOG.md` accordingly
    heath-freenome committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    3025049 View commit details
    Browse the repository at this point in the history