You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a slider with two thumbs and using it as a controlled component with value and onChange. It would be quite helpful if I had an easy way of knowing which thumb has moved in my onChange and onAfterChange event handlers (and onBeforeChange as well, why not):
onChange={(value,index)=>{ ... }}
In most cases, a workaround is to do an equality check for each value, of course, but if the initial values are not multiples of step, they get rounded, which makes things a bit more challenging.
The text was updated successfully, but these errors were encountered:
I'm using a slider with two thumbs and using it as a controlled component with
value
andonChange
. It would be quite helpful if I had an easy way of knowing which thumb has moved in myonChange
andonAfterChange
event handlers (andonBeforeChange
as well, why not):In most cases, a workaround is to do an equality check for each value, of course, but if the initial values are not multiples of
step
, they get rounded, which makes things a bit more challenging.The text was updated successfully, but these errors were encountered: