angular / angular/components

MatSort: When using signals sorting does not work in production when hosted on IIS

Aperta
#31,695 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area: material/table P3
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 using MatSort with signals the sorting works only in development. If you move everything to production and host it on IIS the sorting no longer works

### Reproduction

StackBlitz link: https://stackblitz.com/edit/39hv8b6m

Steps to reproduce:
1. take standard sorting example
2. change a column type to signal
3. perform sorting on column
4. works
5. deploy to IIS with production
6. perform sorting
7. fails to sort

### Expected Behavior

Sorting should work with signal values regardless if they system is in development or it is in production and hosted on IIS

### Actual Behavior

The sorting does not work when in production and hosted on IIS.

### Environment

- Angular: 20.1
- CDK/Material: 20.1
- Browser(s): Chrome, Firefox
- Operating System: Windows

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con la riproduzione StackBlitz collegata e con l’esempio standard di MatSort, quindi confronta il comportamento dopo aver trasformato un valore di colonna in un signal. Riproduci il problema in una build di produzione ospitata su IIS in Chrome o Firefox; il lavoro è completato quando l’ordinamento funziona lì come in sviluppo.

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
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.