Commit 38a28d582b67c35204a656b656fac321f48dd002
1 parent
315dd685
#4626
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
src/components/select/select.vue
@@ -763,7 +763,10 @@ | @@ -763,7 +763,10 @@ | ||
763 | // #4626,当 Options 的 label 更新时,v-model 的值未更新 | 763 | // #4626,当 Options 的 label 更新时,v-model 的值未更新 |
764 | if (options && options.length && this.values.length) { | 764 | if (options && options.length && this.values.length) { |
765 | this.values = this.values.map(value => { | 765 | this.values = this.values.map(value => { |
766 | - const option = options.find(option => option.componentOptions.propsData.value === value.value); | 766 | + const option = options.find(option => { |
767 | + if (!option.componentOptions) return false; | ||
768 | + return option.componentOptions.propsData.value === value.value; | ||
769 | + }); | ||
767 | 770 | ||
768 | if(!option) return null; | 771 | if(!option) return null; |
769 | 772 |