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 authored and shilman committed Nov 6, 2018
1 parent 9ebbce7 commit da8cd05
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
@@ -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,

0 comments on commit da8cd05

Please sign in to comment.