RED-9944 - Action Items don't appear in document area in webviewer when bulk-select is still unintenionally active

This commit is contained in:
Valentin Mihai 2024-10-18 14:39:44 +03:00
parent c8c632a2c1
commit 84aa3f1c00

View File

@ -333,10 +333,17 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
}
@Bind()
handleViewerClick() {
handleViewerClick(event: MouseEvent) {
this._ngZone.run(() => {
if (this._multiSelectService.active()) {
this._multiSelectService.deactivate();
const clickedElement = event.target as HTMLElement;
if (clickedElement.querySelector('#selectionrect')) {
if (!this._annotationManager.selected.length) {
this._multiSelectService.deactivate();
}
} else {
this._multiSelectService.deactivate();
}
}
});
}