angular / angular/components

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

Open
#31,695 4 comments 0 reactions 0 assignees View on GitHub
area: material/table P3
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
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

Contributor guide

Open the contributing guide

Research direction

Start with the linked StackBlitz reproduction and the standard MatSort example, then compare behavior after changing a column value to a signal. Reproduce the failure in a production build hosted on IIS in Chrome or Firefox; done means sorting works there as it does in development.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.