Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

No 'name' attribute for ChipInput? #333

Open
salmanbabri opened this issue Oct 7, 2020 · 2 comments
Open

No 'name' attribute for ChipInput? #333

salmanbabri opened this issue Oct 7, 2020 · 2 comments

Comments

@salmanbabri
Copy link

salmanbabri commented Oct 7, 2020

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

@salmanbabri salmanbabri changed the title No 'name' for usage in forms? No 'name' attribute for ChipInput? Oct 11, 2020
@gfelixc
Copy link

gfelixc commented Nov 1, 2020

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

@anasalaqeel
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants