From 095406eea6089bfb842d3d5fd17fd7ff91898d7e Mon Sep 17 00:00:00 2001 From: Alireza Valizade Date: Mon, 19 Aug 2019 19:39:05 -0700 Subject: [PATCH] fix: select error on unmounting component (#1091) --- 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 c13f3c113..d96a1d9ec 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) {