Skip to content

Commit

Permalink
- Responded to self-feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
heath-freenome committed Jun 27, 2023
1 parent 337c12a commit 22ba32d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/docs/docs/api-reference/form-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Optional enumerated flag controlling how array minItems are populated, defaultin

Optional boolean flag, defaulting to `false` when not specified.
When `formData` is provided and does not contain `minItems` worth of data, this flag controls whether the extra data provided by the defaults is appended onto the existing `formData` items to ensure the `minItems` condition is met.
When `false`, only the `formData` provided is merged into the default form state, even if there are fewer than the `minItems`.
When `false` (legacy behavior), only the `formData` provided is merged into the default form state, even if there are fewer than the `minItems`.
When `true`, the defaults are appended onto the end of the `formData` until the `minItems` condition is met.

### `emptyObjectFields`
Expand Down
6 changes: 3 additions & 3 deletions packages/utils/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ export type Experimental_ArrayMinItems = {
populate?: 'all' | 'requiredOnly';
/** When `formData` is provided and does not contain `minItems` worth of data, this flag (`false` by default) controls
* whether the extra data provided by the defaults is appended onto the existing `formData` items to ensure the
* `minItems` condition is met. When false, only the `formData` provided is merged into the default form state, even
* if there are fewer than the `minItems`. When true, the defaults are appended onto the end of the `formData` until
* the `minItems` condition is met.
* `minItems` condition is met. When false (legacy behavior), only the `formData` provided is merged into the default
* form state, even if there are fewer than the `minItems`. When true, the defaults are appended onto the end of the
* `formData` until the `minItems` condition is met.
*/
mergeExtraDefaults?: boolean;
};
Expand Down

0 comments on commit 22ba32d

Please sign in to comment.