ToggleOpen : listen to `document.onClick` while `isOpen` and close in that case

we stopPropagation() of the event from `element.onClick` to avoid the
case where we are opening and the event listener would get attached from
the isOpen setter and close us again right away.