Slider: Add callback listener only on drag #1742
dagulv
started this conversation in
Feature Requests / Ideas
Replies: 1 comment 2 replies
-
Can you give me an example of the behavior you're experiencing. I don't believe |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently the slider
onValueChange
will be called any time when the sliders value changes, on drag but also when you update its value externally. This can cause problems for when you want to sync the values between sliders and inputs. For example if the slider and input have different steps the slider will overwrite the input value to the sliders closest step value.This callback listener will essentially be similar to an elements event listener, ie
oninput
for an input.Beta Was this translation helpful? Give feedback.
All reactions