Skip to content

Commit

Permalink
Remove warning when using a Component as a text field hint
Browse files Browse the repository at this point in the history
It allows the hintText proptype to be either a string or an element.

Enhancement requested by mui#1202
  • Loading branch information
rrpff committed Aug 15, 2015
1 parent c0dcd82 commit 0642741
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/text-field.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ let TextField = React.createClass({
floatingLabelStyle: React.PropTypes.object,
floatingLabelText: React.PropTypes.string,
fullWidth: React.PropTypes.bool,
hintText: React.PropTypes.string,
hintText: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.element,
]),
id: React.PropTypes.string,
inputStyle: React.PropTypes.object,
multiLine: React.PropTypes.bool,
Expand Down

0 comments on commit 0642741

Please sign in to comment.