Fixed #2168 - Multiselect with Grouped Data, select all options
parent
0d70b500e8
commit
deae807804
|
@ -560,7 +560,14 @@ export default {
|
|||
else if (this.visibleOptions) {
|
||||
if (this.optionGroupLabel) {
|
||||
value = [];
|
||||
this.visibleOptions.forEach(optionGroup => value = [...value, ...this.getOptionGroupChildren(optionGroup)]);
|
||||
if (this.optionGroupLabel) {
|
||||
value = [];
|
||||
this.visibleOptions.forEach(optionGroup => {
|
||||
for (let option of this.getOptionGroupChildren(optionGroup)) {
|
||||
value.push(this.getOptionValue(option));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
else {
|
||||
value = this.visibleOptions.map(option => this.getOptionValue(option));
|
||||
|
@ -597,7 +604,7 @@ export default {
|
|||
}
|
||||
},
|
||||
computed: {
|
||||
visibleOptions() {
|
||||
visibleOptions() {
|
||||
if (this.filterValue) {
|
||||
if (this.optionGroupLabel) {
|
||||
let filteredGroups = [];
|
||||
|
|
Loading…
Reference in New Issue