Skip to content

Conversation

nickgros
Copy link
Contributor

@nickgros nickgros commented Jun 7, 2025

  • Add MultiSchemaFieldTemplate
  • Refactor MultiSchemaField to use MultiSchemaFieldTemplate
  • Add implementation of MultiSchemaFieldTemplate to each theme
  • Documentation & migration guide for MultiSchemaFieldTemplate
  • Update snapshots

Reasons for making this change

Fixes UI bug in many themes, potentially addresses #4662

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

- Add MultiSchemaFieldTemplate
- Refactor MultiSchemaField to use MultiSchemaFieldTemplate
- Add implementation of MultiSchemaFieldTemplate to each theme
- Documentation & migration guide for MultiSchemaFieldTemplate
- Update snapshots
@nickgros nickgros requested a review from heath-freenome June 7, 2025 18:24
/** The rendered widget used to select a schema option */
selector: ReactNode;
/** The rendered SchemaField for the selected schema option */
optionSchemaField: ReactNode;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it's better if this is optional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MultiSchemaField will always pass an optionSchemaField to the template, even if it's null | undefined (which are both valid ReactNode types)

@nickgros nickgros merged commit 7db41ed into rjsf-team:main Jun 9, 2025
4 checks passed
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