Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select: add options argument to the onOpenChange callback #1920

Open
korvin89 opened this issue Oct 25, 2024 · 0 comments
Open

Select: add options argument to the onOpenChange callback #1920

korvin89 opened this issue Oct 25, 2024 · 0 comments
Assignees
Labels
component: Select enhancement New feature or request

Comments

@korvin89
Copy link
Contributor

onOpenChange callback should be looks like this:

type OnOpenChangeOptions = {
    reason: 'selection' | 'outside-click';
};
type OnOpenChange = (nextOpen: boolean, options: OnOpenChangeOptions) => void;
@korvin89 korvin89 added enhancement New feature or request component: Select labels Oct 25, 2024
@korvin89 korvin89 self-assigned this Oct 25, 2024
@korvin89 korvin89 changed the title Select: add options argument to the onOpenChangecallback Select: add options argument to the onOpenChange callback Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Select enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant