Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[next branch] TextField autocomplete #7375

Closed
rares-lupascu opened this issue Jul 7, 2017 · 4 comments
Closed

[next branch] TextField autocomplete #7375

rares-lupascu opened this issue Jul 7, 2017 · 4 comments
Labels
bug 🐛 Something doesn't work component: text field This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation

Comments

@rares-lupascu
Copy link

Hi

Is there a way to create an autocomplete using the components from the next branch?
I know the TextField component has a prop called autocomplete ... which is boolean ... but there is no example of using it ... i do not understand how it matches the data ... more exactly ... where does it get the data from?

thanks

@oliviertassinari
Copy link
Member

Please refer to #4783 for the AutoComplete feature.

which is boolean

Oops, It should be a string! It can be used that way.

          <TextField
            disabled={submitting || this.state.sent}
            required
            name="password"
            autoComplete="current-password"
            label="Password"
            type="password"
          />

@oliviertassinari
Copy link
Member

Might even add this resource in the propTypes description https://developers.google.com/web/updates/2015/06/checkout-faster-with-autofill.

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: text field This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation v1-alpha labels Jul 7, 2017
@everythingspirals
Copy link

autoComplete="current-password"
what is this string a reference to?

@oliviertassinari
Copy link
Member

There isn't much documentation on that point on internet, I have found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: text field This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation
Projects
None yet
Development

No branches or pull requests

3 participants