Closed Guru-Zachw closed 1 year ago
I have removed localStorage named 'pdf.history' also to open first page. I think localStorage data has higher priority than page number props.
Is the intended action to override the page on start then, to remove the history?
I am trying to pass in the pageNumber and it is not working. What I expect to happen is that it should start on the first page, if I pass pageNumber=1 into it. But that is not happening. I am having to go clear the cache for it to initially open on page one.
Configuration:
Steps to reproduce the problem:
The code below is my implementation, which is pretty simple, just pass a pdf into the component
What is the expected behavior?
When adding pageNumber as a property I expect it to initially open at that page number
What went wrong?
It is opening at the last opened page number
Attachments (screenshots, links, etc)