-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When rendering a Combobox inside a DropdownMenu, the Combobox's CommandInput doesn't receive focus automatically. I believe this is due to Radix's focus trapping behavior in DropdownMenu conflicting with Combobox's expected autofocus.
Affected component/components
Combobox, Dropdown menu
How to reproduce
Verify here in the Dropdown menu section, just hover over "Apply label": https://ui.shadcn.com/docs/components/combobox#dropdown-menu
Codesandbox/StackBlitz link
https://ui.shadcn.com/docs/components/combobox#dropdown-menu
Logs
System Info
OS: macOS Tahoe
Browser: Google ChromeBefore submitting
- I've made research efforts and searched the documentation
- I've searched for existing issues
alihaghani
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working