-
-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(slider): onchange is triggered without moving slider
Store previous value to skip onChange trigger if no change is found in value. Added a new variable previousValue and compare it with new value before triggering onChange and onMove. If new changes are found then trigger both or else trigger only onMove.
- Loading branch information
Showing
1 changed file
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters