zillow / react-slider

Accessible, CSS agnostic, slider component for React.
https://zillow.github.io/react-slider
MIT License
891 stars 232 forks source link

Is there a way to ID the source of the value? #93

Closed edgehero closed 6 years ago

edgehero commented 7 years ago

There is a onChange function that is called with the with value. but is there also a way to add a own integer to it ( as id from what slider the value is coming) because i got a application with multiple sliders, which can be added dynamicly

mpowaga commented 6 years ago

This must be handled by your application. Seems like you are trying to reuse onChange callback function for multiple sliders. Instead you should create unique callbacks.