Update Number.js

Fix inconsistency in number API

fix step,min,max attributes in number type
This commit is contained in:
Aaron Reisman 2017-11-25 21:12:24 +07:00 committed by GitHub
parent 087647673a
commit 9058b7d665
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))}
/>
);