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

Field Wrappers for Group vs Field Wrappers for Group Items

Open
#553 1 comment 2 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**?
Feature request

### What is the current behavior?
The examples that use group components such as RadioGroup or Checkboxes show a `` wrapper around each individual item. In a sense, each child component is being subscribed to that `name` key and has the ability to use the field's `onChange` to manipulate the

### What is the expected behavior?
The expected behavior is to have a Field wrapper for the group which shares one instance of it's value and onChange to it's children

Current Examples pseudo code:
```







```

Expected Example
```

// expected only one field wrapper for the group







```

If the expected behavior is the bottom example, this feature request is to change the examples to support this concept. I can submit a PR for this, but I wanted some clarification and an understanding of the correct approach.

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.