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:32:06 +03:00
parent bb3f59f1bb
commit 224dafcae6

View File

@ -279,10 +279,17 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
} }
@Bind() @Bind()
handleViewerClick() { handleViewerClick(event: MouseEvent) {
this._ngZone.run(() => { this._ngZone.run(() => {
if (this._multiSelectService.active()) { 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();
}
} }
}); });
} }