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

[@mantine/core] Combobox: Fix #5427 #5509

Merged
merged 5 commits into from Jan 9, 2024
Merged

Conversation

ID-JA
Copy link
Contributor

@ID-JA ID-JA commented Jan 3, 2024

Fixes #5427

@@ -159,7 +160,7 @@ export function Combobox(_props: ComboboxProps) {
<Popover
opened={store.dropdownOpened}
{...others}
onClose={store.closeDropdown}
onClose={onClose || store.closeDropdown}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose that it would be better to call both functions:

() => {onClose?.(); store.closeDropdown()}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree it's a good idea to call both functions. I've updated it to trigger both close handlers

@rtivital rtivital merged commit eaf8ef4 into mantinedev:master Jan 9, 2024
1 check passed
@rtivital
Copy link
Member

rtivital commented Jan 9, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Combobox onClose does not work
2 participants