-
Notifications
You must be signed in to change notification settings - Fork 504
Description
Describe the bug
Angular/cdk version 18 adds the aria-posinset attribute to cdk-tree-nodes.
This attribute should have a value starting from 1 indicating what the position of the node is in the set.
When opening the node to show the sub-communities, this value becomes 0 which is not a valid value.
To Reproduce
Steps to reproduce the behavior:
- Navigate to the
/community-listpage ('Communities & Collections' button in the navbar) - Inspect the community nodes using browser tools & look for the
aria-posinsetproperty on thecdk-tree-nodes - Click on the node
- Notice that the
aria-posinsetvalue becomes 0
Expected behavior
The cdk-tree-node should retain its original aria-posinset value.
Related work
Introduced with #3717
Actions to take once resolved
Once this issue is resolved, the aria-valid-attr-value test in the community-list e2e test should be re-enabled.
Additional information
From the angular/cdk source code:
The aria-posinset value is determined using findIndex in the _getPositionInSet method.
findIndex returns -1 when no matching entry can be found, so this might explain where the 0 value comes from.
Why exactly no matching entry can be found will require deeper investigation.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status