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
Describe the bug
Other fields validate fine and values are passed correctly, but for some reason this value update doesn't trigger validation methods and so validation has been removed from how-to create tutorial_time and difficulty_level fields, as well as custom components
To Reproduce
Go to CreateHowTo.tsx and try add validate={required} to fields with custom components
Expected behavior
No validation errors
Additional context
You can log validation errors by uncommented button at bottom of the page
fixed, two issues, one was formvalues were being passed to validation object and not react form values, second was validation was being called onblur but custom components only bound to input onchange events, so needed to add onblur call/handler
Describe the bug
Other fields validate fine and values are passed correctly, but for some reason this value update doesn't trigger validation methods and so validation has been removed from how-to create
tutorial_time
anddifficulty_level
fields, as well as custom componentsTo Reproduce
Go to
CreateHowTo.tsx
and try addvalidate={required}
to fields with custom componentsExpected behavior
No validation errors
Additional context
You can log validation errors by uncommented button at bottom of the page
child of #3
The text was updated successfully, but these errors were encountered: