Skip to content

Commit 413b9b1

Browse files
committed
cr vc-select
1 parent e444ca1 commit 413b9b1

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

components/vc-select/Select.jsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ const Select = {
156156
if (this.autoFocus || this._open) {
157157
this.focus();
158158
}
159+
// this.setState({
160+
// _ariaId: generateUUID(),
161+
// });
159162
});
160163
},
161164
watch: {
@@ -665,11 +668,9 @@ const Select = {
665668
} else {
666669
// why not use setState?
667670
this.$data._inputValue = '';
668-
this.$nextTick(() => {
669-
if (this.getInputDOMNode && this.getInputDOMNode()) {
670-
this.getInputDOMNode().value = '';
671-
}
672-
});
671+
if (this.getInputDOMNode && this.getInputDOMNode()) {
672+
this.getInputDOMNode().value = '';
673+
}
673674
}
674675
const tmpValue = this.getValueByInput(inputValue);
675676
if (tmpValue !== undefined) {
@@ -1405,9 +1406,6 @@ const Select = {
14051406
return null;
14061407
}
14071408
// if loading have loading icon
1408-
// if (multiple && !loading) {
1409-
// return null;
1410-
// }
14111409
const defaultIcon = loading ? (
14121410
<i class={`${prefixCls}-arrow-loading`} />
14131411
) : (

0 commit comments

Comments
 (0)