Improve menu behaviour when clicking on grandparents.