Skip to content

Field.Group: Support "exact" prop #321

@kettanaito

Description

@kettanaito

What

I suggest to add a new exact prop to the <Field.Group/> component.

Why

To prevent groups closing/reopening for nested group that must belong to the group outside.

Example

<Field.Group name="first">
  <Field.Group name="second">
    <Input name="fieldOne" initialValue="foo" />
  </Field.Group>

  <Field.Group exact name="second">
    <Input name="fieldOne" initialValue="bar" />
  </Field.Group>
</Field.Group>

Serializes into:

{
  "first": {
    "second": {
      "fieldOne": "foo"
    }
  },
  "second": { // exact
    "fieldOne": "bar"
  }
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions