Replies: 1 comment
-
If you're just doing a single select you can use |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been having an issue typing the
onChange
event when using a custom component forSingleValue
. Everything seems to type correctly when following the typescript docs without any custom componentsThis seems to work, and I can get typescript support inside my
handleChange
function.As soon as I try to add a custom component, the
onChange
prop throws a type error.I then get the following type error on the
onChange
prop. This only happens once I add a custom component, otherwise the types are coming through correctly based on theisMulti
prop being set or not.EDIT: My guess is that I am not typing my SingleValue custom component correctly.
Beta Was this translation helpful? Give feedback.
All reactions