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