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
I am trying to create an InputField component that would take control as one of the props. However, I have a problem with the control props being typed when the field in the schema is not defined as required.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to create an
InputField
component that would takecontrol
as one of the props. However, I have a problem with thecontrol
props being typed when the field in the schema is not defined asrequired
.I created an example where you can see this error:
https://codesandbox.io/p/sandbox/7ms2d4
Can anyone give me a hint on how to correctly type the
control
props in theInputField
component?Beta Was this translation helpful? Give feedback.
All reactions