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

PropTypes.oneOfType() does not return a chainable validator object #1202

Closed
hllau opened this issue Mar 1, 2014 · 3 comments
Closed

PropTypes.oneOfType() does not return a chainable validator object #1202

hllau opened this issue Mar 1, 2014 · 3 comments

Comments

@hllau
Copy link

hllau commented Mar 1, 2014

Example:

> React.PropTypes.oneOfType([
  React.PropTypes.object,
  React.PropTypes.string
  ]).isRequired
<  undefined
@vjeux
Copy link
Contributor

vjeux commented Mar 1, 2014

@hllau: this should be an easy fix, do you want to try to fix it and submit a pull request?

@hllau
Copy link
Author

hllau commented Mar 1, 2014

@vjeux : Sure. I want to try and contribute. Let me do it!

@sophiebits
Copy link
Contributor

8855d61 fixed this, I believe.

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

No branches or pull requests

3 participants