zillow / react-slider

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

onAfterChange callback is called when no change occurs #96

Closed simon-online closed 5 years ago

simon-online commented 7 years ago

Hi,

I'm using v0.7.0 and the onAfterChange callback is getting called when no change occurs. For example if I just click on or tap a handle without changing it's value or drag a handle away from and then back into the original position the onAfterChange callback is still getting called.

It would be much better if the onAfterChange callback is only called if a slider value actually changes.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.