Skip to content

Conversation

@tenphi
Copy link
Member

@tenphi tenphi commented Nov 12, 2025

Note

Improves ComboBox auto-focus to keep focus on a valid item while typing (preferring selected item, else first result) and refocuses when the focused item is filtered out.

  • ComboBox focus behavior (src/components/fields/ComboBox/ComboBox.tsx):
    • Refocuses when the currently focused item no longer exists after filtering.
    • Prefers focusing the effectiveSelectedKey if it exists; otherwise falls back to the first available item.
    • Ensures keyboard navigation and Enter selection remain functional while typing with allowsCustomValue.
  • Release note (.changeset/fix-combobox-auto-focus.md): adds patch changeset describing the auto-focus fix.

Written by Cursor Bugbot for commit 36e2b12. This will update automatically on new commits. Configure here.

@changeset-bot
Copy link

changeset-bot bot commented Nov 12, 2025

🦋 Changeset detected

Latest commit: 36e2b12

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cube-dev/ui-kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Nov 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
cube-ui-kit Ready Ready Preview Comment Nov 12, 2025 11:17am
cube-ui-kit-cursor Ready Ready Preview Comment Nov 12, 2025 11:17am

@github-actions
Copy link
Contributor

github-actions bot commented Nov 12, 2025

📦 NPM canary release

Deployed canary version 0.0.0-canary-00f505c.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 12, 2025

🏋️ Size limit report

Name Size Passed?
All 296.86 KB (+0.02% 🔺) Yes 🎉
Tree shaking (just a Button) 33.33 KB (0% 🟰) Yes 🎉
Tree shaking (just an Icon) 20.59 KB (0% 🟰) Yes 🎉

Click here if you want to find out what is changed in this build

@github-actions
Copy link
Contributor

github-actions bot commented Nov 12, 2025

🧪 Storybook is successfully deployed!

@tenphi tenphi merged commit 15daa00 into main Nov 12, 2025
14 checks passed
@tenphi tenphi deleted the fix-combobox-auto-focus branch November 12, 2025 12:14
@github-actions github-actions bot mentioned this pull request Nov 12, 2025
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.

2 participants