We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8820a18 commit 723b6c6Copy full SHA for 723b6c6
components/input/Input.jsx
@@ -114,6 +114,9 @@ export default {
114
115
handleReset(e) {
116
this.setValue('', e);
117
+ this.$nextTick(() => {
118
+ this.focus();
119
+ });
120
},
121
122
handleChange(e) {
@@ -123,7 +126,13 @@ export default {
123
126
renderClearIcon(prefixCls) {
124
127
const { allowClear, disabled } = this.$props;
125
128
const { stateValue } = this;
- if (!allowClear || disabled || stateValue === undefined || stateValue === null || stateValue === '') {
129
+ if (
130
+ !allowClear ||
131
+ disabled ||
132
+ stateValue === undefined ||
133
+ stateValue === null ||
134
+ stateValue === ''
135
+ ) {
136
return null;
137
}
138
return (
0 commit comments