Replies: 2 comments 2 replies
-
Hello @itsosmx, I hope you don't mind me converting your issue to an discussion, as this is the right place for questions such as yours. The A reusable callback could look like this: const callback = useCallback((value, { name }) => {
updateFormState(state => {
return { ...state, [name]: value };
});
}, []);
<Select onChange={callback} name="test1" /> |
Beta Was this translation helpful? Give feedback.
1 reply
-
I would just manually write in the name of your select field on your change listener: <Select
name={'selectName'}
onChange={(value, action) => handleChange(value, action, 'selectName')}
/> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So i have more than one input everyone have its name that make everything goes where i want , now select only return the selected value without anything make me know what is this value belong to I try to use name attribute but nothing change for me
else its hard to make a handle for every input
Beta Was this translation helpful? Give feedback.
All reactions