Skip to content
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

Clicking outside an activated dropdown should close it #1330

Closed
caendesilva opened this issue Mar 18, 2023 · 0 comments · Fixed by #1331
Closed

Clicking outside an activated dropdown should close it #1330

caendesilva opened this issue Mar 18, 2023 · 0 comments · Fixed by #1331

Comments

@caendesilva
Copy link
Member

To reproduce, either setup a dropdown or visit this hosted preview and click on the "about" dropdown in the navigation menu. It opens, and can be closed by clicking "about" again. I would also expect it to close when I click literally anywhere else. This should be a fairly easy fix as I think Alpine.js has a directive for this exact reason.

While we're at it, we should probably also support pressing esc to close it as well.

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 a pull request may close this issue.

1 participant