Open salmanbabri opened 4 years ago
I have the same problem. I tried using attrib InputProps: {{name:"..."}}
, but then field is not editable
Chip component by default its an html <div>
and you cannot apply name attribute to the html div,
solution: -
you need first to convert <Chip>
to some HTML that can accept the name attribute (i.e: <button>
) and then add name attribute to it by adding component prop to the Chip to be something like <Chip component="button" name="anything">
I want to use ChipInput in a form but cannot find it's 'name' attribute.