Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta Adatta ai principianti
#33,933 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
70/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
angular, angularjs, typescript
Ambito
frontend

Direzione di ricerca

Inizia dal componente di ordinamento Material e dai relativi test, seguendo il comportamento della freccia indicatrice al passaggio del mouse su un’intestazione non ordinata quando un’altra colonna ha una direzione di ordinamento attiva. Confronta la direzione dell’indicatore con quella iniziale configurata per l’intestazione (matSortStart, che per impostazione predefinita è asc). Il lavoro è completato quando l’indicatore della colonna Fat punta verso l’alto prima del clic e corrisponde alla direzione prodotta dal clic.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 14h
PR unite (30g)
95

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di angular/components

Tutte le issue di angular/components

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.