Skip to content
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

Component: Tree children length leftover (?) #14277

Closed
NatsuDzn opened this issue Dec 5, 2023 · 2 comments
Closed

Component: Tree children length leftover (?) #14277

NatsuDzn opened this issue Dec 5, 2023 · 2 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@NatsuDzn
Copy link

NatsuDzn commented Dec 5, 2023

Describe the bug

Not really a bug but I think that some debug code has been leftover in the tree component
Seems to be introduced with 16.8.0

12d79f7#diff-524a3bd7fd2b00102eec4d588122fee2d1e8f1e75439775424f4662791662f9aR117

Environment

Any environment

Reproducer

No response

Angular version

16.2.12

PrimeNG version

16.9.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.12.1

Browser(s)

No response

Steps to reproduce the behavior

  1. Create a primeng tree with multiples children

Expected behavior

Should not display children length or it should use an input to allow the user to hide/show them

@NatsuDzn NatsuDzn added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 5, 2023
@mkoestner
Copy link

I've seen this problem too. It is also visible on the example site: https://primeng.org/tree

@mkoestner
Copy link

I think the relevant line is in 117:
<span *ngIf="!tree.getTemplateForNode(node)">{{ node.label }} {{ node.children ? node.children.length : 0 }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants