Repository navigation
Function on close of SelectMenu modal #1320
|
I have seen the description of Is there a way for me to trigger a custom function upon the close of a |
Answered by
brandongregoryscott
Oct 1, 2021
Replies: 1 comment
|
Hi @maskott! I believe the export interface SelectMenuProps extends Omit<PopoverProps, 'position' | 'content'> {
/**
* The title of the Select Menu.
*/
title?: string
// ... more props
export interface PopoverProps {
// ... more props
onOpen?: () => void
onClose?: () => void
}Hopefully this helps! |
0 replies
Answer selected by
maskott
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @maskott! I believe the
onCloseprop is what you're looking for. It's not obvious from the docs, butSelectMenuPropsextends most of thePopoverProps, includingonClose(the TS definitions should reflect this!):Hopefully this helps!