Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit 5b90352

Browse files
committed
chore(storybook): fix range slider example
fixes #857
1 parent 1dbe2b6 commit 5b90352

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stories/RangeInput.stories.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ storiesOf('ais-range-input', module)
8787
:max="maxRange"
8888
:lazy="true"
8989
:value="[
90-
minValue !== null ? minValue : minRange,
91-
maxValue !== null ? maxValue : maxRange,
90+
typeof minValue === 'number' ? minValue : minRange,
91+
typeof maxValue === 'number' ? maxValue : maxRange,
9292
]"
9393
@change="refine({ min: $event[0], max: $event[1] })"
9494
/>
@@ -113,8 +113,8 @@ storiesOf('ais-range-input', module)
113113
:min="minRange"
114114
:max="maxRange"
115115
:value="[
116-
minValue !== null ? minValue : minRange,
117-
maxValue !== null ? maxValue : maxRange,
116+
typeof minValue === 'number' ? minValue : minRange,
117+
typeof maxValue === 'number' ? maxValue : maxRange,
118118
]"
119119
@input="refine({min: $event[0], max: $event[1]})"
120120
thumb-label="always"

0 commit comments

Comments
 (0)