Skip to content
New issue

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 component does not support real values/step #371

Closed
keul opened this issue Apr 3, 2018 · 1 comment
Closed

Slider component does not support real values/step #371

keul opened this issue Apr 3, 2018 · 1 comment
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@keul
Copy link
Contributor

keul commented Apr 3, 2018

I'm submitting a ... (check one with "x")

[] bug report
[x] feature request
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=57

Plunkr Case (Bug Reports)

https://plnkr.co/edit/Os8vKqnL4ofeGr53PSuh?p=preview

Current behavior
After the first click on the slider, value go to 0 and never change again. I tried also to raise min and max from a 0 to 10 to test is the issue was 0 to 1, but nothing change.

Expected behavior
Being able to step from 0 to 1.

  • PrimeReact version:
    1.5.0
@mertsincan mertsincan self-assigned this Apr 6, 2018
@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Apr 6, 2018
@mertsincan mertsincan added this to the 1.5.1 milestone Apr 6, 2018
@mertsincan
Copy link
Member

mertsincan commented Apr 6, 2018

Also, please use value attribute;

<Slider label="From 0 to 1" value={this.state.value} onChange={this.change} min={0} max={1.0} step={0.25} />
<p>Current value: {this.state.value}</p>

mertsincan added a commit that referenced this issue Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants