-
-
Notifications
You must be signed in to change notification settings - Fork 270
Open
Description
Title:
[Bug] Framework/Library Dropdown Can Only Be Opened Once Per Search Session
Description:
Problem
The framework and library dropdown menus in the search modal can only be opened once per search session. After the first open-close cycle, subsequent attempts to open the dropdown fail until the search modal is closed and reopened.
Steps to Reproduce
- Open the search modal (Cmd+K or Ctrl+K)
- Click the "Library" or "Framework" dropdown
- Dropdown opens ✓
- Click it again
- Dropdown closes ✓
- Click it a third time
- Dropdown does NOT open ✗ (BUG)
- Only way to make it work again is to close and reopen the entire search modal
Root Cause
The modal={true} prop in the Radix Dropdown component creates a modal context that:
- Blocks all interactions with elements outside the dropdown
- Prevents proper state management for re-opens
- Creates focus trapping that interferes with subsequent opens
Expected Behavior
The dropdown should open and close repeatedly without needing to close the entire search modal.
Environment
- Framework: React 18+
- Radix UI: @radix-ui/react-dropdown-menu
- Browser: [Any modern browser]
Severity
Medium - Affects user experience when filtering search results multiple times
Metadata
Metadata
Assignees
Labels
No labels