You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
melloware
changed the title
Custom Filter Broken in Tree Component due to overwritten props in useImperativeHandle hook.
Tree: Custom filter broken due to overwritten props in useImperativeHandle hook.
Jul 26, 2022
melloware
added a commit
to melloware/primereact
that referenced
this issue
Jul 26, 2022
Describe the bug
The
filter
prop of Tree component overwrites thefilter
function in theuseImperativeHandle
hook, breaking the custom filtering function.In https://github.com/primefaces/primereact/blob/master/components/lib/tree/Tree.js, line 297
Reproducer
https://codesandbox.io/embed/primereact-test-forked-dggjdr?fontsize=14&hidenavigation=1&theme=dark
PrimeReact version
8.3.0
React version
18.x
Language
ALL
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: