fix: select error on unmounting component (#1091)

pull/1116/head
Alireza Valizade 2019-08-19 19:39:05 -07:00 committed by tangjinzhou
parent 53e73ab6f8
commit 095406eea6
1 changed files with 1 additions and 1 deletions

View File

@ -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) {