Hacktoberfest 2026:维护者为十月标记出来的 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 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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 天 14 小时
30 天内合并 PR
95

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

angular/components 的其他 Issue

查看 angular/components 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。