2334
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,

2017-01-10 15-48-58
Hélio Dolores
Staff

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
2019-05-11 08-26-11
Shashwat Sahu

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.


UserImage.jpg
Harika R

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

2017-01-10 15-48-58
Hélio Dolores
Staff

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.