Client: HelpScout: clicking outside when inside an externally loaded app does not close the modal

Created on 22 May 2019  路  3Comments  路  Source: aragon/client

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.

bug

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.

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings