Skip to content

fix(cdk/tree): collapse child nodes if top level collapses #20683

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

bochalito
Copy link
Contributor

Fixes a bug in the Angular CDK Tree examples where the children nodes
are still visible when the top level node is collapsed. This is because
the shouldRender() method of the cdk-flat-tree-example.ts is checking
only the parent of current node.

Fixes #20665

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Sep 29, 2020
@bochalito bochalito force-pushed the 20665/flat-tree-child-nodes-not-collapse branch from 43f22df to 06373d3 Compare September 30, 2020 11:50
Fixes a bug in the Angular CDK Tree examples where the children nodes
are still visible when the top level node is collapsed. This is because
the `shouldRender()` method of the `cdk-flat-tree-example.ts` is checking
only the parent of current node.

Fixes angular#20665
@bochalito bochalito force-pushed the 20665/flat-tree-child-nodes-not-collapse branch from 06373d3 to 5dfafba Compare September 30, 2020 12:03
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@crisbeto crisbeto added docs This issue is related to documentation action: merge The PR is ready for merge by the caretaker merge safe target: patch This PR is targeted for the next patch release labels Sep 30, 2020
@mmalerba mmalerba added the merge: fix commit message When the PR is merged, rewrites/fixups of the commit messages are needed label Sep 30, 2020
@mmalerba mmalerba merged commit a90a072 into angular:master Sep 30, 2020
mmalerba pushed a commit that referenced this pull request Sep 30, 2020
Fixes a bug in the Angular CDK Tree examples where the children nodes
are still visible when the top level node is collapsed. This is because
the `shouldRender()` method of the `cdk-flat-tree-example.ts` is checking
only the parent of current node.

Fixes #20665

(cherry picked from commit a90a072)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement docs This issue is related to documentation merge: fix commit message When the PR is merged, rewrites/fixups of the commit messages are needed target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(tree): Leaf nodes are not collapsed if top-level folder is collapsed
4 participants