Copy link to clipboard
Copied
Hello everyone! I'm trying to REMOVE focus from my pdf viewer on render.
I thought it would be a simple line of code "focusOnRendering: false"... but that has not seemed to work. The code below re-renders the pdf when an object that contains a pdf <name> and <URL> is clicked. I would appreciate the help! 🙏🏼
Copy link to clipboard
Copied
So... a few things. You can calling renderPDF when our library launches, _and_ you are calling it on click, is that what you meant to do?
Secondly, are you 100% sure removing focusOnRendering makes the code work fine?
Can you share a public URL where I could see this?
Copy link to clipboard
Copied
Hello Raymond, sorry for the late reply. Yes, I am trying to render the pdf on click.
The code to render the pdf is working just fine. The argument to 'remove focus' is all that's not working.
I'm quite new to development, but I'm trying to make a digital sheet music repertoire.
Here ya go: https://www.clairmusic.com/spaces/rousseau-classical
I'm trying to do this to add keyboard shortcuts. Yet, it renders the pdf, keyboard shortcuts are just active for the pdf rather than the site.