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 proppull/5518/head
parent
cddaf8cbc4
commit
3a7cb252e6
|
@ -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]]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue