primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.08k stars 4.54k forks source link

Component: Tree - ERROR RangeError: Maximum call stack size exceeded at Tree.propagateUp #13976

Open kazakevich-alexei opened 10 months ago

kazakevich-alexei commented 10 months ago

Describe the bug

component Tree - ERROR RangeError: Maximum call stack size exceeded at Tree.propagateUp

For the p-tree component, [filter]="true" , SelectionMode="checkbox" are set. There are approximately 1000 elements in the [value] data source, with a maximum nesting of 3 levels

A value is entered in the filter field and the result is received. When clicking on any node, an error occurs as a result

image

Environment

windows 11, Webstorm

Reproducer

No response

Angular version

16.2.6

PrimeNG version

16.5.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.16.1

Browser(s)

No response

Steps to reproduce the behavior

For the p-tree component, [filter]="true" , SelectionMode="checkbox" are set. A value is entered in the filter field and the result is received. When clicking on any node, an error occurs as a result

Expected behavior

No response

rolandtoth commented 6 months ago

Experiencing this with PrimeNG v17.9.0 too, with only 6 items. This issue makes the search function entirely unusable.

Also when searching, selected checkboxes became unselected, but that's probably another issue.