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
Suppose we have custom SelectWidget registered and it relies on formContext passed in. MultiSchemaField renders current SelectWidget to allow switching between types. But it never passes formContext in.
Steps to Reproduce
Have a SelectWidget implementation that expects formContext to be in props
Register it as a SelectWidget through widgets props for Form.
Add anyOf or oneOf to the schema.
Expected behavior
SelectWidget gets proper props.formContext
Actual behavior
props.formContext is undefined.
Version
@rjsf/core 2.5.0
The text was updated successfully, but these errors were encountered:
Prerequisites
Description
Suppose we have custom SelectWidget registered and it relies on
formContext
passed in. MultiSchemaField renders current SelectWidget to allow switching between types. But it never passesformContext
in.Steps to Reproduce
formContext
to be inprops
SelectWidget
throughwidgets
props forForm
.anyOf
oroneOf
to the schema.Expected behavior
SelectWidget gets proper
props.formContext
Actual behavior
props.formContext
isundefined
.Version
@rjsf/core 2.5.0
The text was updated successfully, but these errors were encountered: