Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cdk/tree): fix level for nested tree nodes (#20226)
* fix(cdk/tree): fix level for flat and nested tree nodes * add test for material/tree * cache parent level instead of traversing DOM on ever level get * logging * set aria-level in ngOnInit, clean up * public api * change host binding to @HostBinding * use host:{} for mat tree and hostbinding for cdk tree * fix tslint comments, fix class inheritance for mat tree * clarify adding class directly to elementRef instead of on host property * minor fixes * fix isNodeElement method name/logic, guarantee boolean value * clean up duplicate @HostBinding and host:{} * replace isDevMode() * super life cycle hooks * public api update * comments explaining super life hook calls, add aria-expanded with setAttribute * set aria-expaded in ngDoCheck * remove duplicate input from MatTreeNode, add missing inputs:[] for classes inheriting CdkTreeNode * add super.ngDoCheck() * change isExpanded setter to private method * remove setting aria-expanded in constructor
- Loading branch information
Showing
8 changed files
with
268 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.