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
My form uses radio buttons, 2 of which will reveal a creatable react-select input. The user can enter in domains on the fly. No drop down. I'm able to get this into the final submit object as an array but I'm trying to figure out how to clear the array if the user changes their mind and selects another radio button. This is a combination of controlled and uncontrolled inputs using register and control.
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
Uh oh!
There was an error while loading. Please reload this page.
-
My form uses radio buttons, 2 of which will reveal a creatable react-select input. The user can enter in domains on the fly. No drop down. I'm able to get this into the final submit object as an array but I'm trying to figure out how to clear the array if the user changes their mind and selects another radio button. This is a combination of controlled and uncontrolled inputs using register and control.
Beta Was this translation helpful? Give feedback.
All reactions