The highlight color selection in the annotation tool does not reset as expected when reopening a PDF #2897
Unanswered
jobouillon
asked this question in
Q&A
Replies: 1 comment
-
|
Sounds like a bug. I don't know if I can solve it - that's a part of the base library I'm not familiar with - but I've opened a issue (#2899). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i’m encountering an issue where the highlight color selection in the annotation tool does not reset as expected when reopening a PDF. Maybe i need to reset the viewer in some way.
Expected Behavior
When reopening the viewer, the highlight tool should match the selected color shown in the toolbar, or it should reset to the actual default (e.g., yellow) with both UI and tool behavior aligned.
Steps to Reproduce
Open a PDF in a modal using .
Select a custom highlight color (e.g., Sky Blue) and apply it.
Close the modal.
Reopen the same (or another) PDF.
The UI shows “Yellow” as the selected color, but the annotation tool still uses the previously selected color (e.g., Sky Blue).
This happens consistently in both Chrome and Edge.
Versions
ngx-extended-pdf-viewer: 23.2.0
Angular: 19.2.1
Notes
I tried clearing selectedPdfUrl to fully destroy the viewer, but the internal color state still persists.
I could not find any pdfjs.annotationEditorParams in localStorage, but I see pdfjs.history under sessionStorage.
Is there a way to fully reset especially the highlight color when reopening the viewer?
Screenshot
The UI shows Yellow, but Blue is actually used:
Beta Was this translation helpful? Give feedback.
All reactions