Replies: 3 comments
-
I managed to use it by first creating this type: export type DropdownSelectHandler = Exclude<
DropdownProps['onOptionSelect'],
undefined
> And then using it like this: const handleSelectOrganization: DropdownSelectHandler = (_event, data) => {
if (data.optionValue && data.optionText) {
// ...
}
} <Dropdown onOptionSelect={handleSelectOrganization}>
// ...
</Dropdown> |
Beta Was this translation helpful? Give feedback.
0 replies
-
I managed to use it by first creating this type: export type DropdownSelectHandler = Exclude<
DropdownProps['onOptionSelect'],
undefined
> And then using it like this: const handleSelectOrganization: DropdownSelectHandler = (_event, data) => {
if (data.optionValue && data.optionText) {
// ...
}
} <Dropdown onOptionSelect={handleSelectOrganization}>
// ...
</Dropdown> |
Beta Was this translation helpful? Give feedback.
0 replies
-
So all the events types we should create our own? there is not @types/??????????? for this? |
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.
-
When trying to use the Dropdown element I can't seem to use the types for the onOptionSelect event handler:
((event: SelectionEvents, data: OptionOnSelectData) => void)
. SelectionEvents and OptionOnSelectData does not seem to be exported? Should I use it some other way?Beta Was this translation helpful? Give feedback.
All reactions