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

[TextField] Add an inputProps property #6111

Merged
merged 1 commit into from Feb 11, 2017
Merged

[TextField] Add an inputProps property #6111

merged 1 commit into from Feb 11, 2017

Conversation

oliviertassinari
Copy link
Member

  • PR has tests / docs demo, and is linted.
  • Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
  • Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

Fixes #6075.

@oliviertassinari oliviertassinari added component: text field This is the name of the generic UI component, not the React module! next labels Feb 10, 2017
@@ -23,6 +23,7 @@ export default class TextField extends Component {
* The CSS class name of the root element.
*/
className: PropTypes.string,
disabled: PropTypes.bool,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please could you add a comment for the API docs? It will be a lot of work to go back and add these later. (Trust me, I did it once! 😆)

@@ -47,6 +52,14 @@ export default class TextField extends Component {
* Whether the label should be displayed as required (asterisk).
*/
required: PropTypes.bool,
/**
* Input type.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels a bit terse. (I know it's an HTML property, and we don't normally explicitly expose or document those, but it may not be immediately obvious what the supported values are.)

@oliviertassinari oliviertassinari merged commit 4f674e7 into mui:next Feb 11, 2017
@oliviertassinari oliviertassinari deleted the expose-input-element branch February 11, 2017 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: text field This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TextField] inputClassName does not add a class to the input element but to its wrapper
3 participants