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
Currently, <BaseForm /> does not support the types that the native form can accept e.g. name. If we add name prop to <ValidateForm /> we get this error:
TS2769: No overload matches this call. Overload 1 of 2, '(props: ValidatedFormProps<unknown>): Validated<typeof BaseForm>.ValidatedForm<unknown, ValidatedFormProps<unknown>, ValidatedFormState<unknown>>', gave the following error. Type '{ children: Element; schema: SimpleSchema2Bridge; model: { a: number; }; onValidate: Mock<any, [model: any, error: any]>; validator: Mock<any, any>; name: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Validated<typeof BaseForm>.ValidatedForm<unknown, ValidatedFormProps<unknown>, ValidatedFormState<unknown>>> & Pick<...> & Partial<...> & Partial<...>'. Property 'name' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Validated<typeof BaseForm>.ValidatedForm<unknown, ValidatedFormProps<unknown>, ValidatedFormState<unknown>>> & Pick<...> & Partial<...> & Partial<...>'. Overload 2 of 2, '(props: BaseFormProps<unknown>): BaseForm<unknown, BaseFormProps<unknown>, BaseFormState<unknown>>', gave the following error. Type '{ children: Element; schema: SimpleSchema2Bridge; model: { a: number; }; onValidate: Mock<any, [model: any, error: any]>; validator: Mock<any, any>; name: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BaseForm<unknown, BaseFormProps<unknown>, BaseFormState<unknown>>> & Pick<...> & Partial<...> & Partial<...>'. Property 'validator' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BaseForm<unknown, BaseFormProps<unknown>, BaseFormState<unknown>>> & Pick<...> & Partial<...> & Partial<...>'. Did you mean 'validate'?
The text was updated successfully, but these errors were encountered:
ErnestTeluk
changed the title
add support for the prop that the native <form /> takes
add support for the props that the native <form /> takes
Sep 16, 2022
ErnestTeluk
changed the title
add support for the props that the native <form /> takes
Add support for the props that the native <form /> takes
Sep 16, 2022
Currently,
<BaseForm />
does not support the types that the native form can accept e.g. name. If we add name prop to<ValidateForm />
we get this error:The text was updated successfully, but these errors were encountered: