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

Warning: Unknown DOM property autocomplete. Did you mean autoComplete? #2882

Closed
mockdeep opened this issue Jan 19, 2015 · 4 comments
Closed

Comments

@mockdeep
Copy link

I'm not sure what counts as a canonical source, but as near as I can tell, the autocomplete input property should be all downcased. I've been having some trouble with form input showing up in Firefox after a refresh and noticed that I had autoComplete='off'. Not sure if that will have an effect on the functionality, though.

https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement
https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion

@syranide
Copy link
Contributor

React requires camelCasing for DOM attributes, even though the DOM attributes are lower-cased or sometimes hyphenated. However, React always output the correct DOM attribute name in the markup, so unless you're seeing something else, everything is as it should.

https://github.com/facebook/react/blob/master/src/browser/ui/dom/HTMLDOMPropertyConfig.js#L47
https://github.com/facebook/react/blob/master/src/browser/ui/dom/DOMProperty.js#L93

@RicardoMTT
Copy link

you have to make use of camelcase.React in the console I think it shows you.
It would be like this:
autoComplete

@michael-freidgeim-webjet

@syranide, both https://github.com/facebook/react/ links are broken.

@syranide
Copy link
Contributor

@michael-freidgeim-webjet https://github.com/facebook/react/blob/f85aadefc0c059648ee53842ba948a7d7cba468b/packages/react-dom/src/shared/possibleStandardNames.js is probably what you are looking for.

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

No branches or pull requests

4 participants