slider icon indicating copy to clipboard operation
slider copied to clipboard

Min and Max value same for RC Slider

Open knnemade99 opened this issue 3 years ago • 3 comments

I have 1 use case where I have min, max and value is same. In this case the slider track handle is towards min value. I want the track handle to be on Max end. Can anyone help me in this issue.

Example: https://codesandbox.io/s/rc-slider-test-forked-sm5py?file=/src/index.js

Screenshot: Screenshot 2022-01-27 at 6 08 10 PM ' Screenshot 2022-01-27 at 6 10 35 PM

Thanks in advance!

knnemade99 avatar Jan 27 '22 12:01 knnemade99

I actually have the same issue. Have you found any solutions?

EdBarrancos avatar Aug 10 '22 09:08 EdBarrancos

Hi @EdBarrancos , There is no straight solution, but yes I managed to find one solution to it. We can handle it using the css. We can override the rc-slider-track and rc-slider-handle classes. Please find the below example. Let me know if you any challenge in it. https://codesandbox.io/s/rc-slider-test-forked-ywspl8?file=/src/index.js

knnemade99 avatar Aug 10 '22 12:08 knnemade99

Thank you

EdBarrancos avatar Aug 10 '22 14:08 EdBarrancos