diff --git a/src/components/select/select.vue b/src/components/select/select.vue index 6a7fa4b..0acc3b6 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -374,13 +374,14 @@ ); } - cOptions.children = children.map(opt => { + // fix #4371 + children = children.map(opt => { optionCounter = optionCounter + 1; return this.processOption(opt, selectedValues, optionCounter === currentIndex); }); - // keep the group if it still has children - if (cOptions.children.length > 0) selectOptions.push({...option}); + // keep the group if it still has children // fix #4371 + if (children.length > 0) selectOptions.push({...option,componentOptions:{...cOptions,children:children}}); } else { // ignore option if not passing filter if (this.filterQueryChange) { -- libgit2 0.21.4