-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix(vue): prevent auto-selecting option on input blur when no user input #3772
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
fix(vue): prevent auto-selecting option on input blur when no user input #3772
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think blurring the input should ever select an option.
See how shadcn works:
https://ui.shadcn.com/docs/components/combobox
That's what i would expect from a combobox (blurring cancels edition).
aknox-epi
commented
Sep 6, 2025
Is this still something that's being actively worked on?
🐛 Bug Fix
This PR resolves issue #3771, where the Vue
<Combobox>would auto-select the active option (typically the first one) when the input was blurred — even if the user didn’t select anything or type.✅ Changes
handleBlurlogic to prevent auto-selection unless:🧪 Tests Added
should not auto-select when input was focused and blurred without typingshould not auto-select the active option when the combobox input is blurredThese regression tests ensure no value is selected unintentionally during blur.
🧠 Context
This behavior was correct in
v1.7.13, but regressed in later versions. This change restores expected UX where blur does not imply selection unless explicitly intended.Let me know if anything needs clarification. Happy to iterate on feedback!