final-form/react-final-form

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

nik-lampe opened this issue · 0 comments

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