Clicking outside popover hides it