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

[typescript] Change the TextField.label type to the InputLabel.children type #8630

Merged
merged 1 commit into from
Oct 10, 2017

Conversation

DaIgeb
Copy link
Contributor

@DaIgeb DaIgeb commented Oct 10, 2017

This is not really a bug, but I believe it is a best-practice to expose the actually used type.

The label property of the TextField component is passed as the children object to the InputLabel component. The typings of the InputLabel component specify React.ReactNode for their children.

@oliviertassinari oliviertassinari merged commit dde7cfc into mui:v1-beta Oct 10, 2017
@DaIgeb DaIgeb deleted the matchLabelTypes branch October 13, 2017 07:47
the-noob pushed a commit to the-noob/material-ui that referenced this pull request Oct 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants