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

Overriding reset behavior does not seems to work for checkbox and radio buttons

Open
#930 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.4k
Forks
497
PR merge metrics
No merged PRs in 30d

Description

### Are you submitting a **bug report** or a **feature request**?
I am submitting a bug report.

### What is the current behavior?

I have overridden the reset button behavior by overriding `onClick` of reset button. But when I click reset, all values are removed at first, but when you click on checkbox item/radio item, previous values come up.

### What is the expected behavior?

Expected behavior should be that on clicking reset button, only console logs should be made (since I have overridden the click behavior) and even after reset checkbox and radio button should be showing all selected values.

### Sandbox Link
https://codesandbox.io/s/react-final-form-list-of-checkboxes-and-radio-buttons-forked-6voxz?file=/src/index.js

### What's your environment?

- react-final-form -v6.0.1

#### Please let me know in case I am missing something.

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.