CascadeSelect: optionGroupChildren doesn't work in string type #4944
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Not sure it is wrong documentation or this feature should be fixed.
Document shows that the prop
optionGroupChildren
accepts bothstring
andstring[]
. I have an option tree. Each layer has its children inchildren
key. So I assigned:optionGroupChildren="'children'"
but CascadeSelect was broken. It works only when I change it to['children', 'children', 'children']
.Reproducer
https://stackblitz.com/edit/cd7uiz?file=src%2FApp.vue,src%2FmockTree.js
PrimeVue version
3.43.0
Vue version
3.x
Language
ES6
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Switch
:optionGroupChildren
between'children'
and['children', 'children', 'children']
.Expected behavior
CascadeSelect
optionGroupChildren
should acceptstring
when option tree has same children key in each layer.The text was updated successfully, but these errors were encountered: