Hi @brainstorrrm :
-
As far as I recall, lightboxes have always closed when the user clicks outside the lightbox. This is a product decision. I agree that it may not be ideal, and I encourage you to submit a feature request to change this behavior. You could in theory also catch the lightbox closure (if the resolved Promise’s returned data is empty) then perform some action or even throw an error, which would route the code to the .catch() block.
-
In this case, if you want to force the user to agree to Terms of Service, you’d probably be better off using a modal dialog box. We have an openModal( ) API for that which hopefully will meet your needs.
-
I’d like to see the issues you’re having with your TOS lightbox; can you please send the URL for the page that calls the lightbox so I can investigate further?
Thanks.