-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDF Viewer not loading on page refresh #1180
Comments
Hi @davidjgonzalez , Could you please check? |
@RahulMohann im away until October. Can you check to see if there are JS errors? Do you see the PDF download HTTP request taking place and completing in the Network panel? I assume this is a problem with the PDF JS SDK since that is all clientside; all ASC does is popular the HTML/script tag w/ the configured values. |
Hi @davidjgonzalez, I see the document download request always happens successfully. But there is an iframe that doesn't get loaded when you refresh. Attached is the screenshot. If it's a client-side issue, how can we fix it? Thanks, |
Hi @RahulMohann - Ah, i see it. Its a race condition -- the viewer.js has to be included before the event listener is registered. I'll cut a fix today. |
Describe the bug
We are using the PDF viewer component in our detail page to render pdf and other documents. We are observing the below behavior.
Any idea why this is happening and how to fix?
Environment
Thanks,
Rahul
The text was updated successfully, but these errors were encountered: