material-ui-chip-input icon indicating copy to clipboard operation
material-ui-chip-input copied to clipboard

No 'name' attribute for ChipInput?

Open salmanbabri opened this issue 5 years ago • 2 comments

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

salmanbabri avatar Oct 07 '20 17:10 salmanbabri

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

gfelixc avatar Nov 01 '20 15:11 gfelixc

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

anasalaqeel avatar Jan 27 '21 10:01 anasalaqeel