Skip to content

Commit ee1cbef

Browse files
fixed issue on unmounting component
1 parent 0eab242 commit ee1cbef

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)