I got a schema like this
const pSchema = object().shape({
text: object().shape({
shortName: string().required(),
longName: string(),
description: string(),
welcomeMessage: string()
}),
config: object().shape({
region: string(),
texts: object().shape({
done: string(),
title: string(),
description: string()
})
})
});
As you can see there are some nested object in there.
What I am doing is I am using formik handleChange to handle the changes in the input form. But some of them are not working when nested deeply.Such as config.texts.done input field.
Since there are a lot of code I won't show them in here
Here is the link for codeSandBox https://codesandbox.io/s/formik-example-forked-6msipj?file=/index.js:305-656