fix validation

This commit is contained in:
Matthew Taylor 2017-11-07 14:04:54 -05:00
parent 95099d6e90
commit 250e3ea089

View file

@ -59,8 +59,8 @@ export default function (Input) {
}
LiveInput.propTypes = {
max: PropTypes.number,
min: PropTypes.number,
max: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
min: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
onSubmit: PropTypes.func.isRequired,
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};