'getValues('field') returns undefined combined with Form.List field array
When combining getValues and Form.List, getValues('names') returns undefined instead of the array itself.
I also tried to setValue of the array on input change:
<Form.List>
<Input onChange={(event) => {
form.setValue('names['+field.key+']', event.target.value, { shouldValidate: true });
}} />
</Form.List>
Please take a look at the following pen: https://codepen.io/fuiba/pen/PoOLgOj?editors=0011
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

