parent
171bc082f7
commit
1d8b4d1374
1 changed files with 4 additions and 3 deletions
|
@ -374,13 +374,14 @@
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
cOptions.children = children.map(opt => {
|
// fix #4371
|
||||||
|
children = children.map(opt => {
|
||||||
optionCounter = optionCounter + 1;
|
optionCounter = optionCounter + 1;
|
||||||
return this.processOption(opt, selectedValues, optionCounter === currentIndex);
|
return this.processOption(opt, selectedValues, optionCounter === currentIndex);
|
||||||
});
|
});
|
||||||
|
|
||||||
// keep the group if it still has children
|
// keep the group if it still has children // fix #4371
|
||||||
if (cOptions.children.length > 0) selectOptions.push({...option});
|
if (children.length > 0) selectOptions.push({...option,componentOptions:{...cOptions,children:children}});
|
||||||
} else {
|
} else {
|
||||||
// ignore option if not passing filter
|
// ignore option if not passing filter
|
||||||
if (this.filterQueryChange) {
|
if (this.filterQueryChange) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue