Merge pull request #2305 from tugcekucukoglu/group
Fixed #2168 - Multiselect with Grouped Data, select all optionspull/2306/head
commit
3aa762bfee
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue