Browse Source

fix: select error on unmounting component (#1091)

pull/1116/head
Alireza Valizade 5 years ago committed by tangjinzhou
parent
commit
095406eea6
  1. 2
      components/vc-select/Select.jsx

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

Loading…
Cancel
Save