-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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
[TextField] attributes propagation #6467
Comments
You are right, the properties aren't forwarded to a native
Here are the rules behind our API. That might change, feel free to make your case. I'm closing the issue for now. |
Actually, forwarding the |
Sure I'd be glad to contribute. |
This should be closed thanks to #6469 |
You are right, thanks for the reminder. |
In the
@next
release TextField component does not propagate props to an actual input element, it defines them on the outermost wrapper div instead. I.e,<TextField name="email" />
will result in<div name="email">{...}</div>
This renders following snippet unusable.
I would like to clarify whether this is intended approach. Right now I work around by passing identifier explicitly,
onChange={e => this.handleChange(e, 'email')}
but this feels a bit excessively since name attribute aims to facilitate this exact task.Thank you for your time, next release looks absolutely stunning.
The text was updated successfully, but these errors were encountered: