fix WPopupMenu cancel at button confusing its visibility (#1834)