Answer the question
In order to leave comments, you need to log in
How to synchronize input and range slider?
I want that by moving the range slider the value of the input changes, and by entering another number in the input the slider slider moves to the entered value. Here is the second and it is impossible to implement. value in the input is simply not even entered otherwise. How to fix this matter?
https://codesandbox.io/s/xenodochial-dawn-9sien?fi...
Thanks.
Answer the question
In order to leave comments, you need to log in
setValue(value === e.target.value);
value ===
. setValue(Math.min(max, Math.max(min, e.target.value)));
I wanted to implement the same thing with a double range slider and it turned out to be somewhat more complicated.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question