fix autoHideOnMouseLeave for popupmenu