bug(Slider): Thumbs positions not updating after start and end value updates in the same time as max attribute
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
### Is this a regression?
- [ ] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
_No response_
### Description
I use the slider as a date range selector. It has 2 possibles ranges, by month or by year.
I give the component an array with every periods and the ranger slider is like an index selector to get min and max value.
I have a first toggle button to help me chose which view to render.
When changing view, the value is updated but both thumbs are not rendered at the right positions.
### Reproduction
StackBlitz link: https://stackblitz.com/edit/components-issue-starter-f3mseegb?file=src%2Fapp%2Fdate-range%2Fdate-range.component.ts
Steps to reproduce:
1. Click "View per year"
2.Click "View per month"
### Expected Behavior
The thumb should be positioned where the 35 is on the slider
### Actual Behavior
The start value is 35 but the thumb position is 0.
### Environment
- Angular: 19
- CDK/Material: 18
- Browser(s): Arc
- Operating System (e.g. Windows, macOS, Ubuntu): macOS
Beitragsleitfaden
Rechercherichtung
Beginne mit der StackBlitz-Reproduktion in src/app/date-range/date-range.component.ts und reproduziere das Problem, indem du auf „View per year“ und anschließend auf „View per month“ klickst. Untersuche, wie sich die Start-, End- und Maximalwerte des Sliders gemeinsam ändern; fertig ist es, wenn der Startwert 35 den Thumb nach dem Wechseln der Ansichten an der entsprechenden Position platziert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100