Skip to content

Conversation

@ar7n
Copy link
Contributor

@ar7n ar7n commented Mar 14, 2016

Prevents errors if you doesn't pass onChange to component

src/index.js Outdated
}
}
if (this.props.onChange) {
if (typeof this.props.onChange !== 'undefined') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

if (this.props.onChange) is fine here. They provide the same level of safety here (and the rest of the cases below).

@iamdustan
Copy link
Collaborator

@ar7n if you could switch these all to if (this.props.onChange) like @jquense mentioned I’ll get this merged in and published. Thanks!

@ar7n
Copy link
Contributor Author

ar7n commented May 2, 2016

@iamdustan i'm done

@iamdustan iamdustan merged commit d9ac7a0 into insin:master May 2, 2016
@iamdustan
Copy link
Collaborator

published as 3.1.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants