angular / angular/components

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

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

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

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

調査の方向性

リンクされた StackBlitz の再現コードと標準の MatSort の例から始め、その後、列の値を signal に変更した場合の挙動を比較します。IIS でホストされた production build を Chrome または Firefox で実行して失敗を再現します。完了の条件は、development と同じようにそこでソートが機能することです。

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

評価

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

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

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