Describe the bug
If a click on a menu item (e.g. soho-popupmenu-label) causes the menu to be destroyed, an unwanted navigation occurs.
To Reproduce
Result
An unwanted navigation occurs (see the address bar with added /#).
All that happens is that when clicking C, the showMenu flag is set to false, causing the popupmenu to be destroyed due to its *ngIf. Not a very common use case perhaps, but let's say a menu click opens another view that doesn't include the popupmenu.
This causes problem when the app also uses the Angular Router.
Expected behavior
A menu item click should never cause a navigation change.
Version
Additional context
Might be an issue in the underlying popupmenu control rather than the angular component.
Related to https://github.com/infor-design/enterprise-ng/issues/807.

Can be reproduced in the popupmenu control as well.
https://design.infor.com/code/ids-enterprise/latest/demo/components/popupmenu/test-destroy.html
$('#popupmenu-2 li:first-child').on('click', function () {
$("#popupmenu-trigger").destroy();
});
We probably need to do a stop propagation in the click code.
This issue is now resolved.