TeamWertarbyte / material-ui-chip-input

A chip input field using Material-UI.
https://mui.wertarbyte.com/#material-ui-chip-input
MIT License
737 stars 208 forks source link

No 'name' attribute for ChipInput? #333

Open salmanbabri opened 4 years ago

salmanbabri commented 4 years ago

I want to use ChipInput in a form but cannot find it's 'name' attribute.

gfelixc commented 4 years ago

I have the same problem. I tried using attrib InputProps: {{name:"..."}}, but then field is not editable

anasalaqeel commented 3 years ago

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">