angular / angular/components

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

Ouverte
#31,695 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
area: material/table P3
Langage dominant
TypeScript
Étoiles
25k
Forks
6.8k
Merge moyen
1 j 8 h
PR mergées (30 j)
91

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par la reproduction StackBlitz liée et l’exemple standard de MatSort, puis comparez le comportement après avoir transformé une valeur de colonne en signal. Reproduisez l’échec dans une build de production hébergée sur IIS dans Chrome ou Firefox ; c’est terminé lorsque le tri fonctionne de la même manière qu’en développement.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
frontend
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.