bug(MatSlider): "showTickMarks" cash if updating mat-slider from api callback #29496
Labels
area: material/slider
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
The previous version in which this bug was not present was
No response
Description
``I have problem with Range slider when i need to get min, max from an API call. The console show no error but my app just freeze completely. If i remove [showTickMarks], problem solved !
slider.html
<mat-slider class="filter-slider" [min]="this.soldeMin" [max]="this.soldeMax" [discrete]="true" [showTickMarks]="true"> <input matSliderStartThumb [(ngModel)]="filterSoldeMin"> <input matSliderEndThumb [(ngModel)]="filterSoldeMax"> </mat-slider>
slider.ts
``
soldeMin: number = 0;
soldeMax: number = 3000;
``
Reproduction
StackBlitz link: https://stackblitz.com/edit/qifxvd?file=src%2Fexample%2Fslider-range-example.ts,src%2Fexample%2Fslider-range-example.html,src%2Fexample%2Fslider-range-example.css
Steps to reproduce:
1.
2.
Expected Behavior
App not freeze
Actual Behavior
App freeze
Environment
The text was updated successfully, but these errors were encountered: