primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
10.96k stars 1.25k forks source link

Tree: filter does not work in lazy mode #4033

Open Terrijoo opened 1 year ago

Terrijoo commented 1 year ago

Describe the bug

When using a Tree with :filter="true" and :lazy="true"/@node-expand the filtering does throw an error about "this.value" not being iterable after expanding a node, see "Steps to reproduce"

Reproducer

https://codesandbox.io/p/sandbox/primevue-demo-forked-433ebz?file=%2Fsrc%2FApp.vue%3A5%2C11

PrimeVue version

3.29.2

Vue version

3.x

Language

ALL

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. Go to https://codesandbox.io/p/sandbox/primevue-demo-forked-433ebz?file=%2Fsrc%2FApp.vue%3A5%2C11
  2. Filter for 0 -- this works
  3. Expand a node -- this already throws an error and makes the tree unusable, because of the loading mask

Another way is:

  1. Expand a node -- this works
  2. Filter for 0 -- this throws the error again, but the tree is still usable

Expected behavior

The "default filter" method should still work and not throw an error

ambashy commented 5 days ago

Any updates on this issue . Filter not working in lazy mode