-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Slider strange behaviour when min and max properties don't match with their default values #10178
Comments
I've been encountering the issue on the same version as before, and still seems to be a problem on the current version of 13. The issue was originally dealt with here: #9538, but the fixes don't work correctly. primeng/src/app/components/slider/slider.ts Lines 121 to 126 in 5b0deb7
(Also in the onTouchStart function too) This is because the variable 'handleValues' is in the range 0->100, not Slider.min->Slider.max. Therefore, if the max isn't 100, then the fix does not work. Needs to check if the max handle value is at 100, not Slider.min |
Sliders will now use the lower handle when both are set to max.
Hey @Phil-DS, |
Yeah, that wasn't the problem I was fixing. It was just the case that, when both handles were at max, and it wasn't using the default maximum of 100, it wouldn't allow you to drag the handles. However, #11427 focuses on that problem and a fix was done in PR #11428. Hopefully, it also solves this issue too. |
Hi, So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap? Best Regards, |
Current behavior
I have detected a bug when the min and max properties (in range mode) don't match with their default values.
If I move the start range control to the end (max value) the slider no longer works properly. That is, I'm not able to move again the start range control to another position.
Expected behavior
The slider control should work properly when min and max values aren't the default values and I move the start control to the end control.
Minimal reproduction of the problem with instructions
You can reproduce it very easy in your Slider control page, the StackBlitz area, changing the min and max values.
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Browser: [all]
Language: [all]
The text was updated successfully, but these errors were encountered: