-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
multiple
is not passed down to custom components
#544
Comments
Also support checkboxes with values (creating an array of all checked values) Fixed issues: - undefined not being converted, resulting in uncontrolled/controlled transitions - multiselect dropdown having a clear button (more likely caused by some SUIR update) - `multiple` for multiselect dropdown being lost (final-form/react-final-form#544) - don't convert empty strings to undefined for text fields
Also support checkboxes with values (creating an array of all checked values) Fixed issues: - undefined not being converted, resulting in uncontrolled/controlled transitions - multiselect dropdown having a clear button (more likely caused by some SUIR update) - `multiple` for multiselect dropdown being lost (final-form/react-final-form#544) - don't convert empty strings to undefined for text fields
You could get around this by using a prop name other than |
yeah, that's the workaround i was using, but not having to do that is cleaner :p |
Also support checkboxes with values (creating an array of all checked values) Fixed issues: - undefined not being converted, resulting in uncontrolled/controlled transitions - multiselect dropdown having a clear button (more likely caused by some SUIR update) - `multiple` for multiselect dropdown being lost (final-form/react-final-form#544) - don't convert empty strings to undefined for text fields
Also support checkboxes with values (creating an array of all checked values) Fixed issues: - undefined not being converted, resulting in uncontrolled/controlled transitions - multiselect dropdown having a clear button (more likely caused by some SUIR update) - `multiple` for multiselect dropdown being lost (final-form/react-final-form#544) - don't convert empty strings to undefined for text fields
@erikras i was stumbling on this too in one of our apps, can you clarify what the Happy to send an PR if you clarify what it does. |
Published fix in |
I'm using the Dropdown from semantic-ui-react. Just like a normal multiselect dropdown it requires the
multiple
prop to enable multiselect mode.However, the
Field
component passesmultiple
only touseField()
but not along with the other props to the component. For<select multiple>
this is handled correctly inuseField()
(input.multiple = true
), but ifcomponent
is something custom, then this prop is lost.Would it make sense to always forward
multiple
, assuming that if it's specified theinput
(whatever it is) knows how to handle it? It doesn't seem to make sense to setmultiple
without passing it down, sinceuseField
only takes it into account forselect
components.The text was updated successfully, but these errors were encountered: