RED-3800: Fixed scroll to annotation

This commit is contained in:
Adina Țeudan 2022-04-11 15:29:46 +03:00
parent 3f45dcdfa1
commit a7466ecd7f

View File

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