final-form / final-form/react-final-form

Codesandbox examples reset broken, and using deprecated

Open
#451 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.4k
Forks
497
PR merge metrics
No merged PRs in 30d

Description

### Examples bug
### What is the current behavior?
The codesandbox examples are using the deprecated `reset` property from FormRenderProps, and are passing it directly to `onClick`, which is replacing the current form fields with the properties from the (synthetic) click event.

### Sandbox Link
Modify a field in the form, then click reset: https://codesandbox.io/s/9y9om95lyp

### Actionable
The examples need to be run through to replace `reset` with `form`, and the reset button onClick handlers with `() => { form.reset() }`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.