-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Slider] Display valueLabel when dragging slider with onChangeCommitted prop. #27800
Comments
Thanks for the feedback. When dragging the value is not committed. Therefore
On the other hand,
Why would we need two different props if they implement the same behavior? |
@eps1lon Thank You for replying
Ok, that's Nice, I missed it thanks for the correction.
A gentle Sorry on the input part csb didn't saved it correctly that's why you saw the earlier version of code. Corrected it anyways...
My suggestion is why not implement the same behavior for valueLabel and dragging thumb for See the below gif - The purpose of this whole long rant is, I want to use |
Summary 馃挕
Slider valueLabel and thumb don鈥檛 change their position when dragging slider using onChangeCommitted prop.
When using onChange prop it is working fine but why not implement the same behavior for onChangeCommitted too?
Call the change function when onmouseup event triggers?
Examples 馃寛
https://codesandbox.io/s/material-demo-forked-vxsmr?file=/demo.js:1235-1252
Motivation 馃敠
I would like to display valuelabel of the slider when a user is dragging over the slider. It would show current value to the user and he would be able to select his desired value on one go, instead of clicking and dragging on slider multiple time to get his desired result.
Currently, it is very difficult to select a specific value in Slider by using onChangeCommitted prop because we are not able to see the current value when dragging.
The text was updated successfully, but these errors were encountered: