I imagine the click event might not be bubbling outside of the iframe... in that case we may want to disable the click outside behaviour entirely.
The expected behavior is to actually close the Help Scout module when users click anywhere in the UI, that being inside an externally loaded app, system app or any other part of the client UI. The rational being that this help component should be as unobtrusive as possible.
I understand there might be some technical limitations with detecting click events outside the iframe, but @bpierre was suggesting that we could investigate more on the focus approach that he used on the popover.
Hmmm, good idea, I will try and see if the useOnBlur hook I implemented can help with this.
Closing as a solution was implemented: https://github.com/aragon/aragon/pull/828
Most helpful comment
The expected behavior is to actually close the Help Scout module when users click anywhere in the UI, that being inside an externally loaded app, system app or any other part of the client UI. The rational being that this help component should be as unobtrusive as possible.
I understand there might be some technical limitations with detecting click events outside the iframe, but @bpierre was suggesting that we could investigate more on the focus approach that he used on the popover.