-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed prop type: Invalid prop hasFeedback
of type object
supplied to FormItem
, expected boolean
.
#141
Comments
hi @liuguangsen0409, it should be possible to use strings with dotnotation, maybe your validationerrors are not correct? |
I do not register sandbox, let me show u some code.
When I click Thank u again ~ |
There are 3 warnings and errors
|
You have nested FormItems which probably does not work. remove the one with name="osVersion" and see if it works. |
If I remove the first name, typescript will warning me that name is required. Now, I change I also want to ask about this console warning, Thank u again ~ |
to the first point: you should remove the outer FormItem altogether (not onlay remove the name). FormItems should not be nested. If you want to access nested form values, just use the dotnotation like To you second point: The warning might happend if there is something wrong with the validation error (I think it should be a string or array of strings). It might also be that you are not using the latest version. I would need a reproduction or more code to help you further. |
@liuguangsen0409 has your issue been resolved? |
I have a question. When I used name with a string like this,
name="obj.xx"
, the console warning meFailed prop type: Invalid prop
hasFeedback
of typeobject
supplied toFormItem
, expectedboolean
.Must name be a simple string?
Thank u
The text was updated successfully, but these errors were encountered: