-
Notifications
You must be signed in to change notification settings - Fork 47k
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
Issues with autoCorrect attribute set as property #5436
Comments
On desktop, the attribute is ignored and actually, it looks like Now that said, the property is a boolean and the attribute supports |
@zpao I've searched far and wide for an official answer on this and it looks like i might be close, can you confirm for me: Should i use |
@JemarJones If it is listed as a boolean property in HTMLDOMPropertyConfig then it should be either boolean true or false, otherwise it's passed through as a string as-is and whatever value the HTML attribute expects should be the one to pass (different for different attributes). |
Hey. As far as I can see, the
autoCorrect
attribute are set as an HTML property.https://github.com/facebook/react/blob/master/src/renderers/dom/shared/HTMLDOMPropertyConfig.js#L194
This can give issues with Input elements. Check this :
autocorrect
in document.createElement('input') === falseautocorrect
in document.createElement('input') === falseautocorrect
in document.createElement('input') === trueThere are identical issues with some other browsers as well.
This is not tested on iOS 9.x
The text was updated successfully, but these errors were encountered: