React-jsonschema-form: Reset form

Created on 13 Jun 2018  路  1Comment  路  Source: rjsf-team/react-jsonschema-form

Prerequisites

  • [x] I have read the documentation;
  • [x] In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.

Description

What the way to reset all the form ? Like the errors displayed and the data in form

Most helpful comment

Simply provide a key prop to the form element, and change it whenever you wan to reset it.
React will create a new fresh element for the new key.

486

>All comments

Simply provide a key prop to the form element, and change it whenever you wan to reset it.
React will create a new fresh element for the new key.

486

Was this page helpful?
0 / 5 - 0 ratings

Related issues

norim13 picture norim13  路  3Comments

ebower12 picture ebower12  路  3Comments

anttivikman picture anttivikman  路  3Comments

jabaren picture jabaren  路  3Comments

pablen picture pablen  路  3Comments