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

meta.active does not update in nested field accessed with dot notation

Open
#709 0 comments 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**?
** bug report **

### What is the current behavior?

When accessing a nested meta object with the useField hook, the active property does not change when using the dot notation "foo.bar". When using it with parentheses "foo[bar]" it works.
Other meta properties like dirty as well as input.value work with both.

### What is the expected behavior?

I'm not sure if this is intended. If it is, then maybe it needs documentation. Maybe there already is some, but I didn't find it yet.

I did see this: https://final-form.org/docs/final-form/field-names, but it does not say anything about this behaviour. So I assume it's a bug :)

### Sandbox Link

https://codesandbox.io/s/jovial-cloud-318qm

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.