Skip to content

Commit 095406e

Browse files
alirezavalizadetangjinzhou
authored andcommitted
fix: select error on unmounting component (#1091)
1 parent 53e73ab commit 095406e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/vc-select/Select.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ const Select = {
164164
if (isMultipleOrTags(this.$props)) {
165165
const inputNode = this.getInputDOMNode();
166166
const mirrorNode = this.getInputMirrorDOMNode();
167-
if (inputNode.value && inputNode.value && mirrorNode) {
167+
if (inputNode && inputNode.value && mirrorNode) {
168168
inputNode.style.width = '';
169169
inputNode.style.width = `${mirrorNode.clientWidth + 10}px`;
170170
} else if (inputNode) {

0 commit comments

Comments
 (0)