Fix bug cannot open link in parent menu item when using mouse click

Close #334