From 3c5d31768efd4673cb6b2320dc9f12b32c8723ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Tue, 22 Mar 2022 03:00:03 +0200 Subject: [PATCH] RED-3603: Arrow navigation fix --- .../file-preview/components/pdf-viewer/pdf-viewer.component.ts | 1 + 1 file changed, 1 insertion(+) 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 58015f867..d0f5c8d5f 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 @@ -229,6 +229,7 @@ export class PdfViewerComponent extends AutoUnsubscribe implements OnInit, OnCha this.annotationManager.addEventListener('annotationSelected', async (annotations: Annotation[], action) => { const nextAnnotations = this.multiSelectService.isEnabled ? this.annotationManager.getSelectedAnnotations() : annotations; this.annotationSelected.emit(nextAnnotations.map(ann => ann.Id)); + this.annotationSelected.emit(action === 'selected' ? nextAnnotations.map(ann => ann.Id) : []); if (action === 'deselected') { return this._toggleRectangleAnnotationAction(true); }