mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-20 05:02:37 +08:00
Update Number.js
Fix inconsistency in number API fix step,min,max attributes in number type
This commit is contained in:
parent
087647673a
commit
9058b7d665
@ -34,6 +34,9 @@ class NumberType extends React.Component {
|
||||
style={styles}
|
||||
value={knob.value}
|
||||
type="number"
|
||||
min={knob.min}
|
||||
max={knob.max}
|
||||
step={knob.step}
|
||||
onChange={() => onChange(parseFloat(this.input.value))}
|
||||
/>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user