Skip to content

Conversation

heath-freenome
Copy link
Member

Reasons for making this change

Fixed #4623 by having the single select version return the element in the returned array

  • Updated chakra-ui's SelectWidget to return a single value from the array

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

Fixed rjsf-team#4623 by having the single select version return the element in the returned array
- Updated chakra-ui's `SelectWidget` to return a single value from the array
Comment on lines -48 to -50
value.map((item) => {
return item;
}),
Copy link
Member Author

Choose a reason for hiding this comment

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

This seemed unnecessary since it basically returned the same thing as value

@heath-freenome heath-freenome merged commit c274839 into rjsf-team:main May 20, 2025
4 checks passed
@heath-freenome heath-freenome deleted the fix-4623 branch September 19, 2025 20:22
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.

The Alternatives example in the playground doesn't work for chakra-ui

2 participants