Replies: 1 comment
-
Greetings @luzybry94 , There is an const onChange = (value, actionMeta) => {
const { action, option } = actionMeta;
if (action === 'select-option') {
console.log('This is likely what you are looking for: ', option);
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
const options = [ { value: "chocolate", label: "Chocolate" }, { value: "strawberry", label: "Strawberry" }, { value: "vanilla", label: "Vanilla" }, ];
I was wondering if there was a way to configure React-Select so that the
event
triggered returns just thevalue
selected instead of an array containing an object with the above key/value pairs?Thanks
Beta Was this translation helpful? Give feedback.
All reactions