Browse Source
fix(ui): make Range component more configurable
renovate/lint-staged-8.x
Tom Kirkpatrick
6 years ago
No known key found for this signature in database
GPG Key ID: 72203A8EC5967EA8
1 changed files with
2 additions and
2 deletions
-
app/components/UI/Range.js
|
|
@ -31,11 +31,11 @@ const Range = asField(({ fieldState, fieldApi, ...props }) => { |
|
|
|
const { onChange, onBlur, initialValue, forwardedRef, ...rest } = props |
|
|
|
return ( |
|
|
|
<Input |
|
|
|
{...rest} |
|
|
|
type="range" |
|
|
|
min={0} |
|
|
|
max={100} |
|
|
|
step={1} |
|
|
|
{...rest} |
|
|
|
type="range" |
|
|
|
ref={forwardedRef} |
|
|
|
value={value || initialValue || '0'} |
|
|
|
onChange={e => { |
|
|
|