Skip to content

Commit

Permalink
fix(formfield): relax label propType validator
Browse files Browse the repository at this point in the history
Fixes #1387
  • Loading branch information
Raj Chourasia authored and levithomason committed Mar 24, 2017
1 parent 3fd65da commit d0a54fb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/collections/Form/FormField.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,8 @@ FormField.propTypes = {
PropTypes.object,
]),

/** A field can show that input is mandatory. Requires a label. */
required: customPropTypes.every([
customPropTypes.demand(['label']),
PropTypes.bool,
]),
/** A field can show that input is mandatory. */
required: PropTypes.bool,

/** Passed to the control component (i.e. <input type='password' />) */
type: customPropTypes.every([
Expand Down

0 comments on commit d0a54fb

Please sign in to comment.