Skip to content

Commit 3a7cb25

Browse files
authored
fix(Input): fix warning about failed setting prop size on input element (#5508)
* fix(Input): warning about failed setting prop size on input element * omit size prop
1 parent cddaf8c commit 3a7cb25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/input/Input.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ export default defineComponent({
309309
if (!inputProps.autofocus) {
310310
delete inputProps.autofocus;
311311
}
312-
const inputNode = <input {...inputProps} />;
312+
const inputNode = <input {...omit(inputProps, ['size'])} />;
313313
return withDirectives(inputNode as VNode, [[antInputDirective]]);
314314
};
315315

0 commit comments

Comments
 (0)