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

Combobox - Triggers onOpenChange with the same value #2365

Closed
IvanKalinin opened this issue Mar 20, 2025 · 1 comment
Closed

Combobox - Triggers onOpenChange with the same value #2365

IvanKalinin opened this issue Mar 20, 2025 · 1 comment

Comments

@IvanKalinin
Copy link

🐛 Bug report

onOpenChange trigged multiple times with the same value

💥 Steps to reproduce

  1. Open the menu using the Combobox Trigger
  2. Start typing
  3. See the onOpenChange called 2 times with the same true value.

💻 Link to reproduction

https://stackblitz.com/edit/ectrq9py

🧐 Expected behavior

The onOpenChange callback should be triggered only when the value changed

Screenshare.-.2025-03-20.9_40_04.AM.mp4
@segunadebayo
Copy link
Member

Good catch! It mostly only triggers twice after clicking the trigger.

I just pushed a fix for this. We'll release an update shortly.

If the issue persists after upgrading, I'll re-open it.

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

No branches or pull requests

2 participants