fix z-index priority for parent menu items

fixes #2702