Closed ThiefMaster closed 5 years ago
You could get around this by using a prop name other than multiple
, but...
yeah, that's the workaround i was using, but not having to do that is cleaner :p
@erikras i was stumbling on this too in one of our apps, can you clarify what the multiple
FieldRenderProp is doing? I can't find it in the documentation (https://github.com/final-form/react-final-form/blob/master/docs/types/FieldRenderProps.md).
Happy to send an PR if you clarify what it does.
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.