I'm working on a project which has a component that's generating custom fields for forms, in which I need to reset their content once a button is pressed. This button also resets the rest of the hard coded fields.
This is how I'm passing the data to generate the fields to the child component, and the inputs are generated through a regular . Another component generates the fields themselves, like so:
How can I access these generated fields to reset them at the same time the rest of the form is reset?
Aucun commentaire:
Enregistrer un commentaire