Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

How do I close Hamburger menu which is open, from the drop down list item inside the hamburger #5308

Answered by hippee-lee
digish777 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @digish777 - this seems more of a How does my app ... question and not an issue. I'm going to move it into the discussions format.

I believe what is needed is for when the app navigation is in responsive mode and the navigation is hidden/shown for responsive use cases. Please help me understand more if I am not right.

The solution involves two things:

  1. de-sugaring the clr-dropdown-menu so the app can use clrIfOpenChange events
  2. getting a reference to the ClrHeader instance so the app can programetically close it

Additionally I added some css that will move the drop down menu closer to the button that opens and closes it.

Obviously my stackblitz is just a POC so you may need to handle s…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hippee-lee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5308 on November 17, 2020 19:45.