Skip to content

Commit 3acd12e

Browse files
author
Jon Q
committed
Fix range options
1 parent 95ae33c commit 3acd12e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/Field/Field.Variants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function NumberField(props) {
4646

4747
export function RangeField(props) {
4848
const { options, ...restProps } = props;
49-
return <TextField {...restProps} type="range" />;
49+
return <TextField {...restProps} {...options} type="range" />;
5050
}
5151

5252
export function SelectField(props) {

stories/Controls.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const Example = () => {
2121
const props = {
2222
text: text('text', 'Hello'),
2323
color: color('color', 'red'),
24-
range: range('range', 10, { min: 0, max: 100 }),
24+
range: range('range', 10, { min: 0, max: 20 }),
2525
number: number('number', '123321'),
2626
boolean: boolean('boolean', false),
2727

0 commit comments

Comments
 (0)