fix: select error on unmounting component (#1091)
parent
53e73ab6f8
commit
095406eea6
|
@ -164,7 +164,7 @@ const Select = {
|
||||||
if (isMultipleOrTags(this.$props)) {
|
if (isMultipleOrTags(this.$props)) {
|
||||||
const inputNode = this.getInputDOMNode();
|
const inputNode = this.getInputDOMNode();
|
||||||
const mirrorNode = this.getInputMirrorDOMNode();
|
const mirrorNode = this.getInputMirrorDOMNode();
|
||||||
if (inputNode.value && inputNode.value && mirrorNode) {
|
if (inputNode && inputNode.value && mirrorNode) {
|
||||||
inputNode.style.width = '';
|
inputNode.style.width = '';
|
||||||
inputNode.style.width = `${mirrorNode.clientWidth + 10}px`;
|
inputNode.style.width = `${mirrorNode.clientWidth + 10}px`;
|
||||||
} else if (inputNode) {
|
} else if (inputNode) {
|
||||||
|
|
Loading…
Reference in New Issue