Skip to main content
Participant
Sep 9, 2020 4:18 PM UTC
Question

API for manually destroying the viewer instance

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.

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Joel Geraci
Community Expert
Community Expert
Sep 9, 2020 7:02 PM UTC

I've just been setting the object to null and that seems to do the trick. Is that not working for you?

Translate