Skip to content

Commit

Permalink
Merge pull request #2728 from af7/patch-2
Browse files Browse the repository at this point in the history
[TextField] Fix typos
  • Loading branch information
oliviertassinari committed Dec 30, 2015
2 parents ed8294c + 957df11 commit 79f52be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/TextField/TextField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ const TextField = React.createClass({
},

setErrorText(newErrorText) {
warning(false, 'setErrorText() method is deprectated. Use the errorText property instead.');
warning(false, 'setErrorText() method is deprecated. Use the errorText property instead.');

if (process.env.NODE_ENV !== 'production' && this.props.hasOwnProperty('errorText')) {
console.error('Cannot call TextField.setErrorText when errorText is defined as a property.');
Expand All @@ -392,8 +392,8 @@ const TextField = React.createClass({

setValue(newValue) {
warning(false,
`setValue() method is deprectated. Use the defaultValue property instead.
Or use this the TextField as a controlled component with the value property.`);
`setValue() method is deprecated. Use the defaultValue property instead.
Or use the TextField as a controlled component with the value property.`);

if (process.env.NODE_ENV !== 'production' && this._isControlled()) {
console.error('Cannot call TextField.setValue when value or valueLink is defined as a property.');
Expand Down

0 comments on commit 79f52be

Please sign in to comment.