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

fix(customPropTypes): false demand() errors #411

Merged
merged 2 commits into from
Aug 21, 2016

Conversation

levithomason
Copy link
Member

No description provided.

@codecov-io
Copy link

Current coverage is 95.15% (diff: 100%)

Merging #411 into master will not change coverage

@@             master       #411   diff @@
==========================================
  Files            91         91          
  Lines          1176       1176          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           1119       1119          
  Misses           57         57          
  Partials          0          0          

Powered by Codecov. Last update 5a7fdc0...ea499fa

const shouldValidate = _.every(propsShape, (val, key) => {
// require propShape validators to pass or prop values to match
return _.isFunction(val) ? !val(props, key, componentName, ...rest) : val === props[propName]
})
Copy link
Member Author

@levithomason levithomason Aug 20, 2016

Choose a reason for hiding this comment

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

Support defining giveProps by value instead of by PropType function only:

control: customPropTypes.givenProps(
  { control: 'input' },
  customPropTypes.disallow(['children'])
),

@levithomason levithomason merged commit eb44b27 into master Aug 21, 2016
@levithomason levithomason deleted the fix/custom-prop-types branch August 21, 2016 00:00
@levithomason
Copy link
Member Author

Released in v0.35.1

@levithomason levithomason changed the title customPropTypes: fixes and features fix(customPropTypes): false demand() errors Aug 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants