angular / angular/components

bug(slider): Slider doesn't render values in SSR (Universal)

オープン
#27,226 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
area: material/slider P2
主要言語
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

- When rendered on the server with Angular Universal, the slider thumb always renders at the left-most position, regardless on the actual value
- What's more, a range slider only shows the "start" thumb, but not the "end" thumb.

### Reproduction

(don't know where to host a Universal app)

### Expected Behavior

- Two thumbs are rendered in SSR for a range slider
- Slider thumbs positions in SSR reflect the actual slider values

### Actual Behavior

- Only the "start" thumb is rendered in SSR
- The the start thumb is rendered in the left-most position in SSR, regardless on the actual value

### Environment

- Angular: 15
- CDK/Material: 15
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):

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

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

調査の方向性

リポジトリのファイルやテストは指定されていません。まず、range valueを使用してAngular Universalでスライダーを再現し、次にSSRによって両方のつまみが設定された位置にレンダリングされることを確認してください。そのレンダリング結果を完了の定義とします。

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

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

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

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