Skip to content

Conversation

@smcmurray
Copy link

I'm not clear on why the code opened the parent .menu-item of any clicked element.

It seems that the only way the element could have been clicked in the first place is if its parent .menu-item was already open. So either that code was pointless, or I have failed to understand some case that this PR will now break.

Either way, when you click on an open dropdown, this PR should close that dropdown.

This assumes that EventListeners for the same event on the same element are executed in the order in which they were added.

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