From a7466ecd7f3ad2a657f3fc6e4b24a6dd64f3599f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Mon, 11 Apr 2022 15:29:46 +0300 Subject: [PATCH] RED-3800: Fixed scroll to annotation --- .../components/file-workload/file-workload.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.ts b/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.ts index ecc13ef02..04aa855e9 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.ts @@ -234,7 +234,7 @@ export class FileWorkloadComponent { return; } const elements: HTMLElement[] = this._annotationsElement.nativeElement.querySelectorAll( - `div[annotation-id="${this._firstSelectedAnnotation?.id}"].active`, + `[annotation-id="${this._firstSelectedAnnotation?.id}"].active`, ); FileWorkloadComponent._scrollToFirstElement(elements); }