Close popup when clicking outside the window

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