fix Select bug that can not select in group mode
This commit is contained in:
parent
0f5c1b3640
commit
57bd5393c5
1 changed files with 2 additions and 2 deletions
|
@ -761,9 +761,9 @@
|
||||||
},
|
},
|
||||||
slotOptions(options, old){
|
slotOptions(options, old){
|
||||||
// #4626,当 Options 的 label 更新时,v-model 的值未更新
|
// #4626,当 Options 的 label 更新时,v-model 的值未更新
|
||||||
if (options && options.length && this.values.length && !this.multiple) {
|
if (this.flatOptions && this.flatOptions.length && this.values.length && !this.multiple) {
|
||||||
this.values = this.values.map(value => {
|
this.values = this.values.map(value => {
|
||||||
const option = options.find(option => {
|
const option = this.flatOptions.find(option => {
|
||||||
if (!option.componentOptions) return false;
|
if (!option.componentOptions) return false;
|
||||||
return option.componentOptions.propsData.value === value.value;
|
return option.componentOptions.propsData.value === value.value;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue