Skip to content

Conversation

reakaleek
Copy link
Member

@reakaleek reakaleek commented Apr 10, 2025

Context

Progressive enhancement of dropdown. Previously, the drop would open and not close when clicking on the link of the active item.

Changes

preventDefault on mousedown so that it won't be focused

@reakaleek reakaleek requested a review from a team as a code owner April 10, 2025 08:40
@reakaleek reakaleek self-assigned this Apr 10, 2025
@reakaleek reakaleek added the fix label Apr 10, 2025
@reakaleek reakaleek changed the title Make sure dropdown is closed on click Prevent dropdown to open when click on active anchor Apr 10, 2025
@reakaleek reakaleek merged commit 02d9244 into main Apr 10, 2025
14 checks passed
@reakaleek reakaleek deleted the feature/close-dropdown branch April 10, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants