You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If inputProps.size is a false value, like 0, null, undefined,
and pass it to <input {...inputProps} />.
A warning appears.
[Vue warn]: Failed setting prop "size" on : value 0 is invalid. DOMException: Failed to set the 'size' property on 'HTMLInputElement': The value provided is 0, which is an invalid size.
What is expected?
do not warning.
What is actually happening?
[Vue warn]: Failed setting prop "size" on : value 0 is invalid. DOMException: Failed to set the 'size' property on 'HTMLInputElement': The value provided is 0, which is an invalid size.
The text was updated successfully, but these errors were encountered:
don't close 😂
I get this problem as well, if not set the "size" attr of a-input, this warning would be ejected.
on the case of ant-design-vue is required by "script" or webpack external
but there should be default value of a-input
hope for fixed, thx for creating this remarkable ui component project
Version
3.1.0
Environment
antdv 3.1.1
Reproduction link
Steps to reproduce
ant-design-vue/components/input/Input.tsx
Lines 286 to 313 in cddaf8c
If
inputProps.size
is a false value, like0
,null
,undefined
,and pass it to
<input {...inputProps} />
.A warning appears.
[Vue warn]: Failed setting prop "size" on : value 0 is invalid. DOMException: Failed to set the 'size' property on 'HTMLInputElement': The value provided is 0, which is an invalid size.
What is expected?
do not warning.
What is actually happening?
[Vue warn]: Failed setting prop "size" on : value 0 is invalid. DOMException: Failed to set the 'size' property on 'HTMLInputElement': The value provided is 0, which is an invalid size.
The text was updated successfully, but these errors were encountered: