as the code above…
lightbox1 have a button to open lightbox2 that come back to lightbox1 at close…
when lightboxe1 close… “.then” is not working on the page…
if lightboxe1 close without go to lightbox2… the “.then” is working and do the rest on the page.
some solutions?
thanks to all.
page code :
wixWindow.openLightbox("lightbox1", data)
.then(() => {
(do somethings when it close)
}
///////////////////////////////////////////////////////////////
lightbox1 code:
on press button >>
wixWindow.openLightbox("lightbox2", data)
.then(() => {
wixWindow.openLightbox("lightbox1", data)
}