diff --git a/components/vc-select/Select.vue b/components/vc-select/Select.vue index 919de6c77..1e42943e5 100644 --- a/components/vc-select/Select.vue +++ b/components/vc-select/Select.vue @@ -563,7 +563,11 @@ export default { }, getLabelFromOption (child) { - return getPropValue(child, this.optionLabelProp) + let label = getPropValue(child, this.optionLabelProp) + if (Array.isArray(label) && label.length === 1 && !label[0].tag) { + label = label[0].text + } + return label }, getLabelFromProps (value) { @@ -1251,11 +1255,12 @@ export default { } } const singleValue = sValue[0] + const key = singleValue.key selectedValue = (
+
{this.getPlaceholderElement()} {innerNode}
) }, - muitipleContainerClick (e) { - if (this.openStatus) { + topCtrlContainerClick (e) { + if (this.openStatus && !isSingleMode(this.$props)) { e.stopPropagation() } },