Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

bug(material/sort): hover hint arrow on an unsorted header shows the active sort direction, not the resulting direction after click.

オープン 初心者向け
#33,933 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@lekhmanrus がすでに取り組んでいます。

2026年10月8日 から。

  • #33943 @lekhmanrus による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
70/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
angular, angularjs, typescript
領域
frontend

調査の方向性

Material のソートコンポーネントとそのテストから始め、別の列に有効なソート方向が設定されているとき、未ソートのヘッダーにマウスを乗せた際のヒント矢印の動作を追います。ヒントの方向を、ヘッダーに設定された開始方向(matSortStart、デフォルトは asc)と比較します。クリック前に Fat 列のヒントが上向きで、クリックによって設定される方向と一致すれば完了です。

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

説明

area: material/sort gemini-triaged needs triage
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

18

Description

The hint arrow on an unsorted header uses the table's current direction, but a click sorts that header in its start direction (matSortStart, asc by default).

Last worked as expected on v18. Which can be seen on the docs page.

https://material.angular.dev/components/sort/overview (bugged)

https://v18.material.angular.dev/components/sort/overview (working)

Reproduction

This can be reproduced on the docs page.

https://material.angular.dev/components/sort/overview

  1. Sort the Calories column desc.
  2. Hover the Fat column.
  3. Note the direction of the hover hint arrow.
  4. Click the Fat column to sort.
  5. NOT sorted how the hint from three (3) suggested it would be.
Expected Behavior

At step three in the reproduction description, the hover hint arrow should be pointed up.

Actual Behavior

At step three in the reproduction description, the hover hint arrow is pointed down.

Environment
  • Angular: latest
  • CDK/Material: latest
  • Browser(s): all
  • Operating System (e.g. Windows, macOS, Ubuntu): all
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 12時間
マージ済み PR(30日)
94

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

angular/components のほかの issue

angular/components の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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