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:35:52 +03:00
parent 611f293e64
commit 5f309bffe0

View File

@ -279,10 +279,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();
}
}
});
}