diff --git a/apps/red-ui/src/app/modules/file-preview/components/pdf-viewer/pdf-viewer.component.ts b/apps/red-ui/src/app/modules/file-preview/components/pdf-viewer/pdf-viewer.component.ts index 870a8d3a0..de786c320 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/pdf-viewer/pdf-viewer.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/components/pdf-viewer/pdf-viewer.component.ts @@ -352,6 +352,9 @@ export class PdfViewerComponent extends AutoUnsubscribe implements OnInit, OnCha async #configureAnnotationSpecificActions(viewerAnnotations: Annotation[]) { if (!this.canPerformActions) { + if (this.instance.UI.annotationPopup.getItems().length) { + this.instance.UI.annotationPopup.update([]); + } return; }