bug(material/sort): hover hint arrow on an unsorted header shows the active sort direction, not the resulting direction after click.
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 70/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- angular, angularjs, typescript
- Domain
- frontend
Research direction
Start with the Material sort component and its tests, following the hover hint arrow behavior for an unsorted header when another column has an active sort direction. Compare the hint's direction with the header's configured start direction (matSortStart, defaulting to asc). Done when the Fat-column hint points up before clicking and matches the direction produced by the click.
Written by the indexing model from the issue text.
Description
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
- Sort the Calories column desc.
- Hover the Fat column.
- Note the direction of the hover hint arrow.
- Click the Fat column to sort.
- 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
- Dominant language
- TypeScript
- Stars
- 25k
- Forks
- 6.8k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 92
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from angular/components
-
bug(mat-date-picker): month shown twice in date pickerPossibly taken @PreethiPantangi claimed this 21 days ago. Openarea: material/datepicker P4
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
angular/components#33763 · 2 comments · 3 reactions ·
Maintainers usually reply within 1 day
-
Bug in table.scss footer cell height: unset instead of footer row height unsetPossibly taken @minwookshin claimed this 8 days ago. Openarea: material/table P4
Difficulty 1/5 Under an hour Newbie friendliness 88/100
angular/components#33709 · 1 comment ·
Maintainers usually reply within 1 day
-
docs-bug(Table): Add example with `rowspan`Possibly taken @BHUVANSH855 claimed this 89 days ago. Openarea: material/table docs P4
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
angular/components#33455 ·
Maintainers usually reply within 1 day
-
bug(date-adapter): Misleading JSDoc for createDate returns typePossibly taken @BHUVANSH855 claimed this 138 days ago. Openarea: material/core P3
Difficulty 1/5 Under an hour Newbie friendliness 78/100
angular/components#33059 · 2 comments ·
Maintainers usually reply within 1 day
-
bug(DIALOG): dialog's container-color does not follow Material 3 design specsPossibly taken @jjalbuenacabuyao claimed this 498 days ago. Openarea: material/dialog P2
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
angular/components#30536 · 3 reactions ·
Maintainers usually reply within 1 day
All issues in angular/components
Similar issues
-
./collections should export setUmbracoVersion and setAllowFilePathUploads for in-process consumersOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
umbraco/Umbraco-CMS-MCP-Dev#563 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
afk-ok area:data-quality importer size:S
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
enorm-labs/event-junkie#3166 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 80/100
alunduil/projects-v2-sync#21 ·