From ee1cbefe02872fe70c6424a6b1810192643bc5f1 Mon Sep 17 00:00:00 2001 From: Alireza Valizade Date: Fri, 16 Aug 2019 10:52:08 +0200 Subject: [PATCH] fixed issue on unmounting component --- components/vc-select/Select.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/vc-select/Select.jsx b/components/vc-select/Select.jsx index c13f3c1131..d96a1d9ecf 100644 --- a/components/vc-select/Select.jsx +++ b/components/vc-select/Select.jsx @@ -164,7 +164,7 @@ const Select = { if (isMultipleOrTags(this.$props)) { const inputNode = this.getInputDOMNode(); const mirrorNode = this.getInputMirrorDOMNode(); - if (inputNode.value && inputNode.value && mirrorNode) { + if (inputNode && inputNode.value && mirrorNode) { inputNode.style.width = ''; inputNode.style.width = `${mirrorNode.clientWidth + 10}px`; } else if (inputNode) {