-
Notifications
You must be signed in to change notification settings - Fork 6.8k
bug(mat-slider): Max value not updating correctly when new value is 0 #23913
Copy link
Copy link
Closed
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: material/slidergood first issueLabel noting a good first issue to be worked on by a community memberLabel noting a good first issue to be worked on by a community memberhelp wantedLabel noting an issue which the team is looking for contribution from the community to fixLabel noting an issue which the team is looking for contribution from the community to fix
Metadata
Metadata
Assignees
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: material/slidergood first issueLabel noting a good first issue to be worked on by a community memberLabel noting a good first issue to be worked on by a community memberhelp wantedLabel noting an issue which the team is looking for contribution from the community to fixLabel noting an issue which the team is looking for contribution from the community to fix
Type
Fields
Give feedbackNo fields configured for issues without a type.
Is this a regression?
The previous version in which this bug was not present was
No response
Description
I am changing slider's max value in my component while/after doing some works. And it seems it has a problem updating visually when new max value is 0.
Reproduction
Steps to reproduce:
<mat-slider min="0" [displayWith]="displayValue" [max]="maxValue" step="1" [thumbLabel]="true" [tickInterval]="1" [(ngModel)]="sliderValue" (ngModelChange)="changeSliderValue()"></mat-slider>Expected Behavior
Updating slider and ticks correctly.
Actual Behavior
Updated slider and ticks incorrectly.
Environment