angular / angular/components

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

Aperta
#27,226 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area: material/slider P2
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Non vengono indicati file del repository né test. Inizia riproducendo lo slider con Angular Universal usando un valore di intervallo, quindi verifica che SSR esegua il rendering di entrambe le maniglie nelle posizioni configurate; questi risultati di rendering definiscono quando il lavoro è completato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, typescript
Ambito
frontend
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.