Close popup when clicking outside the window

Hi,

While using popups from mobile app, clicking outside the popup won't close it. Is there any easy way to implement this functionality?

Thanks,

Hi Ana,

You can find an example in attachment. 

Basically it's a block that injects a div behind the PopUp content that will trigger an Event when the area is clicked. 

Please let me know if it solves your problem.

best regards,

Hélio


Hélio Dolores wrote:

Hi Ana,

You can find an example in attachment. 

Basically it's a block that injects a div behind the PopUp content that will trigger an Event when the area is clicked. 

Please let me know if it solves your problem.

best regards,

Hélio


Great, It is working.


Hi
I've published this component that also implements this behavior:

https://www.outsystems.com/forge/component-overview/2331/close-popup-on-outside-click

Hope it helps