Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Function on close of SelectMenu modal#1320

Discussion options

I have seen thedescription ofSelectMenuContent in the docs, but I do not understand if/how I can use theclose attribute.

Is there a way for me to trigger a custom function upon the close of aSelectMenu's selection modal?

You must be logged in to vote

Hi@maskott! I believe theonClose 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!):

exportinterfaceSelectMenuPropsextendsOmit<PopoverProps,'position'|'content'>{/**   * The title of the Select Menu.   */title?:string// ... more propsexportinterfacePopoverProps{// ... more propsonOpen?:()=>voidonClose?:()=>void}

Hopefully this helps!

Replies: 1 comment

Comment options

Hi@maskott! I believe theonClose 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!):

exportinterfaceSelectMenuPropsextendsOmit<PopoverProps,'position'|'content'>{/**   * The title of the Select Menu.   */title?:string// ... more propsexportinterfacePopoverProps{// ... more propsonOpen?:()=>voidonClose?:()=>void}

Hopefully this helps!

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

[8]ページ先頭

©2009-2025 Movatter.jp