Is this a regression?
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
Is this a regression?
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:
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 toTree<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