Open Toanzzz opened 5 years ago
I'd like to second this, but also for the <Field>
component.
I'm trying to get a custom component to 'reset' its content when .reset()
is called on the parent Form
, so I need some sort of callback to manually set the value of the custom component, since in my usecase it is not responding to the parent value, I need a callback.
Are you submitting a bug report or a feature request?
Feature request
What is the current behavior?
The
FormRenderProps
have reset function, but you still need to write custom hander for reset button click, or form's onReset eventWhat is the expected behavior?
It could be nice if
FromRenderProps
providehandleReset
function, similar tohandleSubmit
that could give directly to the<form>
tag. It should have default behavior to pickup and pass current form'sinitialValues
to reset function.Other information
I'd happy to make a pull request for this