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
First of all sorry if this is not the correct way of posting, I am not used to that so please tell me if I do anything wrong.
So I'm trying to use a custom SchemaField and according to the documentation I'm supposed to be able to use the same props as the one in a custom field. But while I am able to retrieve the formContext property on all of my custom code (custom widget and custom object field template), it is always undefined when I try to use it in the custom SchemaField.
Steps to Reproduce
create a custom SchemaField
create a formContext with some property
provide the custom schemaField and the formContext to the form
Expected behavior
formContext should not be undefined in the custom schemaField
Actual behavior
formContext is undefined
Version
rjsf/core: 2.4.1
constCustomSchemaField=(props: any)=>{const{ onChange, name, formContext }=props;//here the formContext is undefinedconsole.log(formContext)return(<SchemaField{...props}/>)}
The text was updated successfully, but these errors were encountered:
Prerequisites
Description
First of all sorry if this is not the correct way of posting, I am not used to that so please tell me if I do anything wrong.
So I'm trying to use a custom SchemaField and according to the documentation I'm supposed to be able to use the same props as the one in a custom field. But while I am able to retrieve the formContext property on all of my custom code (custom widget and custom object field template), it is always undefined when I try to use it in the custom SchemaField.
Steps to Reproduce
Expected behavior
formContext should not be undefined in the custom schemaField
Actual behavior
formContext is undefined
Version
rjsf/core: 2.4.1
The text was updated successfully, but these errors were encountered: