Copy link to clipboard
Copied
We are implementing the embed API in a vue.js application and a facing a problem when using the "Lightbox" mode. We programmatically navigate away from the page showing the viewer. The viewer doesn't realize that and doesn't clean up (in particular: doesn't remove the "ViewSDK_hideOverflow" class from the body). Therefore users aren't able to scroll anymore after opening the pdf viewer.
This is a major issue for us. We are currently implementing a workaround, but would really appreciate it if it were possible to just call ".destroy()" or a similar method so the viewer does the same cleanup which happens when the user manually leaves the viewer.
Copy link to clipboard
Copied
I've just been setting the object to null and that seems to do the trick. Is that not working for you?