1865
Views
4
Comments
Close popup when clicking outside the window
Question

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


ClosePopUp.oml

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.


Thank you, I have used it in my mobile application and its working very well.

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.