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 |
Beta Was this translation helpful? Give feedback.
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! |
Beta Was this translation helpful? Give feedback.
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
onClose
prop is what you're looking for. It's not obvious from the docs, butSelectMenuProps
extends most of thePopoverProps
, includingonClose
(the TS definitions should reflect this!):Hopefully this helps!