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 checked/selected not working, only partialSelected works #15369

Closed
anndyd opened this issue Apr 26, 2024 · 2 comments
Closed
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@anndyd
Copy link

anndyd commented Apr 26, 2024

Describe the bug

html:
<p-tree [value]="permissions" selectionMode="checkbox" [selection]="selectedpermissions"
class="w-full md:w-30rem" >

permissions = [
{ children: [
{key: '7child', label: 'tenantOverview', data: 7}],
key: "0",
label: "首页"
{
key: "1",
label: "商品",
selected: true,
checked: true,
data: 13
},
];

but after page loaded, all checkbox uncheck.

Environment

mac os 14.0 (23A344)

Reproducer

No response

Angular version

17.0.5

PrimeNG version

17.3.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

v20.10.0

Browser(s)

edge 124.0.2478.51,

Steps to reproduce the behavior

  1. add tree component to html, and configuring selectionMode as checkbox.
  2. prepare data and set some node checked/selected as true,
  3. run project: ng s
  4. check in browser

Expected behavior

some tree nodes check box checked as data set

@anndyd anndyd added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 26, 2024
@mertsincan
Copy link
Member

Hi,

So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you open a new issue so we can include it in our roadmap?

Thanks a lot for your understanding!
Best Regards,

@marcosdenoni
Copy link

marcosdenoni commented Dec 17, 2024

Hi @mertsincan i have some problem on primeng 18...

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

3 participants