RED-3603: Arrow navigation fix

This commit is contained in:
Adina Țeudan 2022-03-22 03:00:03 +02:00
parent 55938fc92b
commit 3c5d31768e

View File

@ -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);
}