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

[RFR] Pass total to ReferenceManyField #2487

Merged
merged 1 commit into from Oct 30, 2018
Merged

Conversation

fzaninotto
Copy link
Member

@fzaninotto fzaninotto commented Oct 30, 2018

Since we refactored the List component, its children expect a total prop to be passed to them. But the same children can also be used as children of the <ReferenceManyField> component, which didn't pass the total prop. this caused a regression in 2.4.0.

This PR lets the <ReferenceManyField> grab the total of the references from the store, and pass it to its children - so it solves the issue when <ReferenceManyField> is used with <SimpleList> as child.

Closes #2462
Supersedes #2467

@djhi djhi added this to the 2.4.2 milestone Oct 30, 2018
@djhi djhi merged commit 7301071 into master Oct 30, 2018
@djhi djhi deleted the fix-reference-many-field-total branch October 30, 2018 19:16
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.

None yet

2 participants