We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<Slider onChange={(value) => { this.setState({ value }) }} value={this.state.value} stepSize={0.1} />
(http://www.webpackbin.com/Ek8qyKYFG)
Slider label displays expected step values.
Perhaps this could be fixed by rounding to the number of significant digits given in stepSize.
stepSize
The text was updated successfully, but these errors were encountered:
this is easily handled by a custom renderLabel, but is not supported out-of-the-box currently.
renderLabel
<Slider renderLabel={(value) => value.toFixed(2)}` />
Sorry, something went wrong.
when using fractional (<1) steps, you pretty much have to do the above code.
we'd also happily accept a PR to add a precision prop.
precision
giladgray
No branches or pull requests
Bug report
Steps to reproduce
(http://www.webpackbin.com/Ek8qyKYFG)
Actual behavior
Expected behavior
Slider label displays expected step values.
Perhaps this could be fixed by rounding to the number of significant digits given in
stepSize
.The text was updated successfully, but these errors were encountered: