From 38a28d582b67c35204a656b656fac321f48dd002 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Mon, 17 Dec 2018 16:06:03 +0800 Subject: [PATCH] #4626 --- src/components/select/select.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/select/select.vue b/src/components/select/select.vue index e4a47a9..9b0de56 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -763,7 +763,10 @@ // #4626,当 Options 的 label 更新时,v-model 的值未更新 if (options && options.length && this.values.length) { this.values = this.values.map(value => { - const option = options.find(option => option.componentOptions.propsData.value === value.value); + const option = options.find(option => { + if (!option.componentOptions) return false; + return option.componentOptions.propsData.value === value.value; + }); if(!option) return null; -- libgit2 0.21.4