mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 13:11:20 +08:00
Merge pull request #4669 from tarikhamilton/knobs/number-proptypes-bug
Fix PropTypes in addons/knobs NumberType
This commit is contained in:
parent
9ebbce78d6
commit
da8cd05737
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user