Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở Phù hợp với người mới
#33,933 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
70/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
angular, angularjs, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu với thành phần sắp xếp của Material và các bài kiểm thử của nó, theo dõi hành vi của mũi tên gợi ý khi di chuột qua một tiêu đề chưa được sắp xếp trong lúc một cột khác có hướng sắp xếp đang hoạt động. So sánh hướng của gợi ý với hướng bắt đầu được cấu hình cho tiêu đề (matSortStart, mặc định là asc). Hoàn tất khi gợi ý của cột Fat hướng lên trước khi nhấp và khớp với hướng do thao tác nhấp tạo ra.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
TypeScript
Star
25k
Fork
6.8k
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
94

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của angular/components

Tất cả issue của angular/components

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.