Skip to content

Conversation

heath-freenome
Copy link
Member

Reasons for making this change

Fixes a bug in LayoutGridField where it was looking at the wrong key for the UiSchema's global options

  • Updated LayoutGridField to use the UI_GLOBAL_OPTIONS_KEY constant from @rjsf/util instead of its own constant, which had the wrong key name
  • Also fixed the GlobalUISchemaOptions to extend from GenericObjectType to support user-defined values for their customizations
  • Updated the tests and CHANGELOG.md accordingly

Checklist

  • I'm updating documentation
  • I'm adding or updating code
    • I've added and/or updated tests. I've run npx nx run-many --target=build --exclude=@rjsf/docs && 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

Fixes a bug in `LayoutGridField` where it was looking at the wrong key for the `UiSchema`'s global options
- Updated `LayoutGridField` to use the `UI_GLOBAL_OPTIONS_KEY` constant from `@rjsf/util` instead of its own constant, which had the wrong key name
- Also fixed the `GlobalUISchemaOptions` to extend from `GenericObjectType` to support user-defined values for their customizations
- Updated the tests and `CHANGELOG.md` accordingly
Co-authored-by: Serena Chen <[email protected]>
@heath-freenome heath-freenome merged commit 31f08be into rjsf-team:main May 16, 2025
4 checks passed
@heath-freenome heath-freenome deleted the fix-LayoutGridField-bug branch May 16, 2025 23:55
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