If the menu does not get disposed when you navigate to a new page (that is, it is outside of the @Body), it will not close. I am attaching our CRUD project template here, modified to nest the pages in a child menu, and a short video that demonstrates this behavior.
thank you marin this is exactly how my menu works but my issue is menu gets opened when its hovered
and if you stop hovering it gets closed what i want is that when i click on it, it should be open and doesnt matter if its hovered or not
like the popup of drop down when you click on arrow it gets open and when dropdown looses focus popup gets closed