Skip to content

Commit

Permalink
Making deprecation warning clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
JedWatson committed Nov 23, 2017
1 parent e7a77da commit 1f1aa6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Select.js
Expand Up @@ -83,7 +83,7 @@ class Select extends React.Component {

componentDidMount () {
if (typeof this.props.autofocus !== 'undefined' && typeof console !== 'undefined') {
console.warn('Warning: The autofocus prop will be deprecated in react-select1.0.0 in favor of autoFocus to match React\'s autoFocus prop');
console.warn('Warning: The autofocus prop has changed to autoFocus, support will be removed after react-select@1.0');
}
if (this.props.autoFocus || this.props.autofocus) {
this.focus();
Expand Down

0 comments on commit 1f1aa6a

Please sign in to comment.