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

<Field> initialValue / defaultValue prop

Open
#387 31 comments 24 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?
A `` is required to be provided `initialValues` to set _default values_ for fields.

### What is the expected behavior?
`` can accept a prop `initialValue` or `defaultValue` that is registered with the parent ``'s initial values.

This would be oober convenient in many cases where fields are dynamically generated or conditionally rendered in the ``.

I'm happy to work up a PR if you're accept/review the effort @erikras

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.