Skip to content

Conversation

heath-freenome
Copy link
Member

@heath-freenome heath-freenome commented Aug 27, 2025

Reasons for making this change

Fixes #4733 by fixing how the ArrayField.onSelectChange() callback passes the path

  • Updated ArrayField onSelectChange to not pass name in the path since the ObjectField will automatically add it
  • Updated the 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 rjsf-team#4733 by fixing how the `ArrayField.onSelectChange()` callback passes the path
- Updated `ArrayField` `onSelectChange` to not pass `name` in the `path` since the `ObjectField` will automatically add it
- Updated the `CHANGELOG.md` accordingly
@Fronix
Copy link
Contributor

Fronix commented Aug 27, 2025

Still not that familiar with the inner workings, this makes more sense 😊

@heath-freenome heath-freenome merged commit 137851b into rjsf-team:main Aug 27, 2025
4 checks passed
@heath-freenome heath-freenome deleted the fix-4733 branch August 27, 2025 18:29
Fronix pushed a commit to Fronix/react-jsonschema-form that referenced this pull request Sep 23, 2025
…4737)

* Fix 4733 by fixing the ArrayField.onSelectChange function
Fixes rjsf-team#4733 by fixing how the `ArrayField.onSelectChange()` callback passes the path
- Updated `ArrayField` `onSelectChange` to not pass `name` in the `path` since the `ObjectField` will automatically add it
- Updated the `CHANGELOG.md` accordingly

* - Fixed a comment

* - Updated `CHANGELOG.md`
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.

Multiselect onChange not changing values

3 participants