angular / angular/components

bug(Slider): Thumbs positions not updating after start and end value updates in the same time as max attribute

オープン
#31,119 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
area: material/slider P3
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

### 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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

src/app/date-range/date-range.component.ts の StackBlitz reproduction から始め、「View per year」をクリックしてから「View per month」をクリックして問題を再現します。slider の start、end、max の値がどのように連動して変化するかを確認します。ビューを切り替えた後、start 値 35 によって thumb が対応する位置に配置されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。