Skip to content

fix: close Auto Research dropdown on outside click#157

Merged
Zhang-Henry merged 1 commit intoOpenLAIR:mainfrom
dgtql:fix/autoresearch-dropdown-menu
Apr 11, 2026
Merged

fix: close Auto Research dropdown on outside click#157
Zhang-Henry merged 1 commit intoOpenLAIR:mainfrom
dgtql:fix/autoresearch-dropdown-menu

Conversation

@dgtql
Copy link
Copy Markdown
Contributor

@dgtql dgtql commented Apr 10, 2026

Summary
Add click-outside-to-close behavior for the Auto Research dropdown in the guided prompt starter (empty chat state)

Before
When clicking the 🧪 Auto Research button in the chat empty state, the dropdown opens but can only be closed by clicking the button again. Clicking anywhere else on the page leaves the dropdown open.

After
Clicking anywhere outside the dropdown now closes it. This is consistent with how all other dropdowns in the project already behave (e.g., AutoResearchDropdown in the chat toolbar, GitPanel, etc.), which use the same mousedown outside-click pattern.

@Zhang-Henry Zhang-Henry merged commit 41d5695 into OpenLAIR:main Apr 11, 2026
1 check passed
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