vikignt / svelte-mui

Simple Svelte 3 UI components
MIT License
318 stars 38 forks source link

Autofill attributes not working for the TextField #49

Open thakkaryash21 opened 1 year ago

thakkaryash21 commented 1 year ago

Hello,

While using the Textfield as a part of the form, even though the required attributes are given with the Textfield, the browser autofill suggestions dont show up. On inspecting, I noticed that the attributes are getting applied to the input element but the autofill dropdown does not work. I am trying to use it for collecting basic user information such as name, mobile number, email and address

Really appreciate any leads! Thank you

vikignt commented 1 year ago

Hello @thakkaryash21,

You must set the name attribute, like

<Textfield bind:value={q} name="search" filled label="Search" message="Enter search string" />

Sorry for the long answer.