Range controls min,max and step don't have any effect (for me)... #29257
Replies: 1 comment
-
FFS. Sorry. I can't read. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I'm specifying controls for a component via
argTypes
that includes:smoothness: { control: 'range', min: 0.01, max: 1.0, step: 0.01 }
. Nevertheless, the control is rendered as a range from 0..100 with a step of 1. There are no errors, and I cannot find any informationa about how to debug it.I'm running 8.3.4 (happened on 8.3.0 too) through Vite. The only strange configuration detail is that React and Jotai are peer dependencies as it's a component library.
When I look in the minified
sb-manager
code, I can see the control being rendered. The following object has been curated:Which is then passed into a function that ignores the argTypes min and max value:
I don't know how to make sense of what I'm seeing. I surely cannot be the only one using range sliders with non-0..100 ranges! Help?
Additional information
No response
Create a reproduction
https://stackblitz.com/edit/github-dwcynt?file=package.json,.storybook%2Fmain.ts,src%2Fstories%2FButton.tsx,src%2Fstories%2FButton.stories.ts&preset=node
Beta Was this translation helpful? Give feedback.
All reactions