If someone open the second Input pressing first + button, and then CLOSE that second input with X Button I try to clean that input/state and object with setValues({ questionTwo: “” })
You’re changing the object with five properties to an object with only one property. You need to keep all of the other properties intact.
The object you’re currently setting:
{
questionTwo: ""
}
The object you want:
{
questionOne: // the current value of questionOne
questionTwo: "",
questionThree: // the current value of questionThree
questionFour: // the current value of questionFour
questionFive: // the current value of questionFive
}