Commit 7aef044
committed
🐛 [#266] add prefix to the field key for AddressNL before accessing the formik context
When a user clicks on the "edit" button in the editgrid, react rerenders component as an
isolated EditGridItem and creates an isolated formik context, where the field names have a prefix
like "editgrid:0".
Therefore we need to prefix the field name with 'useFieldConfig' hook in order to find the data in the
new isolated context.1 parent b2d109c commit 7aef044
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments