You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Everyone !
I try to implement a deeply nested form with formik
My inputs are in a table, each column represent a nested property of the row.
ie: op_template_components.0.component.component_type.name is the input name for the property component.component_type.name for the first row of op_template_components
consthandleInputChange=(e)=>{const{ value, name }=e.targetconsole.log({ value, name })setFieldValue(name,value)}
When a change event occurs i got this error:
2.chunk.js:4603 Uncaught TypeError: array.constructor is not a constructor
at initCloneArray (2.chunk.js:4603)
at baseClone (2.chunk.js:2993)
at clone (2.chunk.js:5761)
at setIn (2.chunk.js:251)
at 2.chunk.js:775
at 2.chunk.js:1333
at handleInputChange (21.a1e6c9cbd4c1b56f6886.hot-update.js:67)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi Everyone !
I try to implement a deeply nested form with formik
My inputs are in a table, each column represent a nested property of the row.
ie:
op_template_components.0.component.component_type.name
is the input name for the propertycomponent.component_type.name
for the first row ofop_template_components
My code for the table body is:
and my change handler code:
When a change event occurs i got this error:
What am I doing wrong ?
Beta Was this translation helpful? Give feedback.
All reactions