-
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 not working with dynamic values. #985
Comments
I can confirm this. Here's a simple example:
When I drag it to the left, it goes beyond the minimum point: When It's at the left end, the value should be -10, but it's 0 Near the middle the value should be 0, but it's 9 If I try to move beyond this point, the slider jumps straight away to the far right point, with the right value now: Also, if I set the |
What is your PrimeNG version? |
@cagataycivici |
Duplicate of #1193 |
Slider (p-slider) is working fine with dynamic values like this
<p-slider [(ngModel)]="price_range" [style]="{'width':'200px'}" [range]="true" [animate]='true' (onChange)='xyz()'></p-slider>
But when i provide dynamic value in [min] and [max] than animation is not works as expected but function is calling fine
not working code
<p-slider [(ngModel)]="price_range" [style]="{'width':'200px'}" [range]="true" [animate]='true' (onChange)='getBrandList()' [min]='price_range[0]' [max]='price_range[1]'></p-slider>
otherwise works only for default values which is 0,100
is it known bug ?
The text was updated successfully, but these errors were encountered: