-
-
Notifications
You must be signed in to change notification settings - Fork 659
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
Return previous slider value in Events #1168
Comments
It might make sense to not fire |
From my perspective it would indeed make sense to always fire set (even if the value didn't change), since the value gets set no matter what the value is. But for the change event it would make sense to only fire it if the value actually has changed. |
This is more of a feature request rather than an issue.
It would be great if the slider would return also the previous value when an event gets triggered. Then one could check for a value change and only if values have changed, perform an action (like an ajax request) - similar to the state update procedure in react.
Currently one has to store and update the previous value in a global var to check the value in an event handler since the change event gets triggered even if the value hasn't changed.
The text was updated successfully, but these errors were encountered: