Fixed issues with show and hide events in TopBarMenu.