bug(mat-slider): Incorrect slider thumb position when changing min/ max and form value
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- angular, typescript
- 領域
- frontend
調査の方向性
src/main.ts の StackBlitz reproduction から始め、reactive form、バインドされた min/max 値、mat-slider を使ってカテゴリの変更を再現します。min/max と setValue の変更後に slider がどのように thumbs を更新するかを調べます。Category B を選択した後、フォームの値と一致する [5, 15] に slider 1 の thumbs が表示されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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
A range slider is bound to a reactive form using formControlName; min/ max properties are also bound.
After programmatically updating min/ max variables and calling setValue to update the form values, observed behaviour is that range slider thumbs don't match the form values. Expected behaviour is that thumb positions match the calls to setValue.
https://github.com/user-attachments/assets/3bb7de78-5d05-436d-90ac-f1288fac8a32
Reproduction
StackBlitz link: https://stackblitz.com/edit/components-issue-starter-xwmbwzkn?file=src%2Fmain.ts
Steps to reproduce:
- Select Category A (this sets ranges to be [10, 20] + [20, 30], and absolute min/ max to be [10, 30])
- Select Category B (this sets ranges to be [5, 15] + [15, 25], and absolute min/ max to be [5, 25])
- Hover over 1st slider's thumbs
Expected Behavior
Expected slider 1's thumbs to be at [5, 15] (to match form values after having called setValue)
Actual Behavior
Observed slider 1's thumbs to be at [10, 15] (which doesn't match form values)
Environment
- Angular: 20.3.15
- CDK/Material: 20.2.14
- Browser(s): Chrome Version 143.0.7499.41 (Official Build) (64-bit)
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 11
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 3日 7時間
- マージ済み PR(30日)
- 59
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
angular/components のほかの issue
-
bug(aria/accordion): Enter/Space inside a panel toggles the accordion instead of activating the focused element対応中かも @agarwalU001 が 1 日前に担当しました。 オープンarea: aria/accordion gemini-triaged needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
angular/components#34011 ·
メンテナーはふだん 1 日以内に返信
-
bug(aria/combobox): keys pressed back to back are lost; only the last one reaches the popup対応中かも @drakeo338 が 6 日前に担当しました。 オープンarea: aria/combobox gemini-triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
angular/components#33973 ·
メンテナーはふだん 1 日以内に返信
-
bug(material/sort): hover hint arrow on an unsorted header shows the active sort direction, not the resulting direction after click.対応中かも @lekhmanrus が 18 日前に担当しました。 オープンarea: material/sort P3
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
angular/components#33933 ·
メンテナーはふだん 1 日以内に返信
-
bug(mat-date-picker): month shown twice in date picker対応中かも @PreethiPantangi が 36 日前に担当しました。 オープンarea: material/datepicker P4
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
angular/components#33763 · コメント 2 件 · リアクション 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Bug in table.scss footer cell height: unset instead of footer row height unset対応中かも @minwookshin が 22 日前に担当しました。 オープンarea: material/table P4
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
angular/components#33709 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
angular/components の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
ajv-validator/ajv#2689 ·
-
[Bug]: IME confirmation Enter can submit the SSH port-forward dialog対応中かも @seijikohara が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
home-assistant/frontend#55323 ·
メンテナーはふだん 1 日以内に返信
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
lingdojo/kana-dojo#33188 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
self-driving
難易度 1/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信