Ensuring hide handler is always active when popover is visible