-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I tried setting a range control and wanted the default value to be zero. I discovered that this works for any non-zero value, but zero puts the range control at 50% visually and you get the react warning when setting it for the first time Warning: A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component.
Reproduction
Here's a stackblitz repro: https://stackblitz.com/edit/ladle-jcsl2b?file=src%2Fbasic.stories.tsx
Environment
- OS: (all)
- Browser: (all)
- Version: Has existed since at least 2.x.x
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working