I am currently working on an Angular 4 project that includes a mega menu. My issue is that when I click on a menu within the mega menu, I want it to close. However, in my current setup, the menu always remains open even after clicking on a specific option. It only closes when I remove the mouse focus from it.
Here is a Stackblitz link for reference: https://stackblitz.com/edit/angular-bootstrap-carousel-dynamic2-w1qhj4?file=app/app.component.html
If anyone has any suggestions on how to resolve this issue, I would greatly appreciate it.