overriding handleChange
Quick question: I have an
<FormTextInput /> that takes a field prop.
Inside of this component I have a const handleChange that will in fine call field.handleChange() after doing some manbo jumbo.
Today I have to work on a new component that will render my <FormTextInput /> but I need to do some formatting before calling field.handleChange()
Does it make any sense? Any idea on the best course to do so?
I am not really fund of patching field.handleChange() before I pass field={field} to my component.
Should it be something we should be able to override as a prop in <form.Field />?0 Replies