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
pull/5518/head
bqy_fe 2022-04-19 09:52:00 +08:00 committed by GitHub
parent cddaf8cbc4
commit 3a7cb252e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ export default defineComponent({
if (!inputProps.autofocus) { if (!inputProps.autofocus) {
delete inputProps.autofocus; delete inputProps.autofocus;
} }
const inputNode = <input {...inputProps} />; const inputNode = <input {...omit(inputProps, ['size'])} />;
return withDirectives(inputNode as VNode, [[antInputDirective]]); return withDirectives(inputNode as VNode, [[antInputDirective]]);
}; };