Skip to content

bug(aria/tree): missing documented methods on Tree<V> class #33489

Description

@mvukic

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

I don't believe it worked in version

Description

It seems that the methods mentioned at Aria Tree documentation do not actually exist on the Tree directive class.

Methods are:

  • expandAll()
  • collapseAll()
  • selectAll()
  • clearSelection()

After additional investigation of the distributed types I found that they do exist on type Tree<T extends TreeItem<V, T>, V> in _tree-chunk.d.ts but I am not sure how this type relates to Tree<V>.

Reproduction

Try to call any of the mentioned methods on Tree instance and they will be undefined.

Expected Behavior

Mentioned methods to exist on the Tree class and do what their names are indicating.

Actual Behavior

Can't find mentioned methods on the Tree class.

Environment

  • Angular: 22.1-next.2
  • CDK/Material: Aria
  • Browser(s): Chrome but should not make a difference
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows 11 but should not make a difference

Metadata

Metadata

Assignees

Labels

area: aria/treegemini-triagedLabel noting that an issue has been triaged by geminineeds triageThis issue needs to be triaged by the team

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions