Component: tree checked/selected not working, only partialSelected works #15369
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
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
Expected behavior
some tree nodes check box checked as data set
The text was updated successfully, but these errors were encountered: