Skip to content

Function on close of SelectMenu modal #1320

Discussion options

You must be logged in to vote

Hi @maskott! I believe the onClose prop is what you're looking for. It's not obvious from the docs, but SelectMenuProps extends most of the PopoverProps, including onClose (the TS definitions should reflect this!):

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!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maskott
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants