Skip to content

Commit

Permalink
Merge pull request #4669 from tarikhamilton/knobs/number-proptypes-bug
Browse files Browse the repository at this point in the history
Fix PropTypes in addons/knobs NumberType
  • Loading branch information
igor-dv committed Nov 5, 2018
2 parents 356fc90 + 816b836 commit cbda39c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/knobs/src/components/types/Number.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class NumberType extends React.Component {
NumberType.propTypes = {
knob: PropTypes.shape({
name: PropTypes.string,
value: PropTypes.number,
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
range: PropTypes.bool,
min: PropTypes.number,
max: PropTypes.number,
Expand Down

0 comments on commit cbda39c

Please sign in to comment.