Skip to content

Commit

Permalink
bug(Dropdown|Label): Remove overzealous prop validations
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffcarbs committed Nov 10, 2016
1 parent 0185032 commit 31ffe9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/elements/Label/Label.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,7 @@ export default class Label extends Component {
onRemove: PropTypes.func,

/** Shorthand for Icon to appear as the last child and trigger onRemove. */
removeIcon: customPropTypes.every([
customPropTypes.demand(['onRemove']),
customPropTypes.itemShorthand,
]),
removeIcon: customPropTypes.itemShorthand,

/** A label can appear as a ribbon attaching itself to an element. */
ribbon: PropTypes.oneOfType([
Expand Down
5 changes: 1 addition & 4 deletions src/modules/Dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,7 @@ export default class Dropdown extends Component {
* A function that takes (data, index, defaultLabelProps) and returns
* shorthand for Label .
*/
renderLabel: customPropTypes.every([
customPropTypes.demand(['multiple']),
PropTypes.func,
]),
renderLabel: PropTypes.func,

/** A dropdown can have its menu scroll. */
scrolling: PropTypes.bool,
Expand Down

0 comments on commit 31ffe9c

Please sign in to comment.