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 - Does not filter of first paste #2364

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

Combobox - Does not filter of first paste #2364

IvanKalinin opened this issue Mar 20, 2025 · 1 comment

Comments

@IvanKalinin
Copy link

🐛 Bug report

The component does not filter the list of options of the first paste event.

💥 Steps to reproduce

  1. Click on the Combobox input
  2. a) Paste text. See the list is not filtered
    b) Open the menu by clicking the trigger. Paste a text.
  3. Trigger any change event - it starts filtering the list.
  4. Now it filters on another paste event.

💻 Link to reproduction

https://zagjs.com/components/react/combobox

🧐 Expected behavior

It should filter the list by pasting a text right away.

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

Good catch. This was a bug in the demo code, not Zag itself.

I've tweaked the logic a bit

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