Closed hughess closed 2 weeks ago
defaultValue and step props currently do not convert string inputs into numbers, causing the component to break in some scenarios. Same logic for min and max should be applied to those props
defaultValue
step
min
max
Add slider with defaultValue and step specified
No response
annoyance
Wrap numbers with {}. E.g.,:
{}
<Slider defaultValue={0.11} step={0.02} />
@kwongz Can you take this one? Lets refactor Slider to use toNumber for any props that are numbers
Slider
toNumber
Describe the bug
defaultValue
andstep
props currently do not convert string inputs into numbers, causing the component to break in some scenarios. Same logic formin
andmax
should be applied to those propsSteps to Reproduce
Add slider with
defaultValue
andstep
specifiedLogs
No response
System Info
No response
Severity
annoyance
Additional Information, or Workarounds
Wrap numbers with
{}
. E.g.,: