Merge branch 'VM/RED-9944' into 'master'
RED-9944 - Action Items don't appear in document area in webviewer when... Closes RED-9944 See merge request redactmanager/red-ui!647
This commit is contained in:
commit
0259bcee06
@ -596,7 +596,7 @@ export class FileWorkloadComponent extends AutoUnsubscribe implements OnInit, On
|
||||
|
||||
@HostListener('document: click')
|
||||
clickOutsideWorkloadView() {
|
||||
if (this.multiSelectService.active()) {
|
||||
if (this.multiSelectService.active() && !this._dialog.openDialogs.length) {
|
||||
this.multiSelectService.deactivate();
|
||||
}
|
||||
}
|
||||
|
||||
@ -282,17 +282,21 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
|
||||
@Bind()
|
||||
handleViewerClick(event: MouseEvent) {
|
||||
this._ngZone.run(() => {
|
||||
if (this._multiSelectService.active()) {
|
||||
if (event.isTrusted) {
|
||||
const clickedElement = event.target as HTMLElement;
|
||||
if (
|
||||
clickedElement.querySelector('#selectionrect') ||
|
||||
clickedElement.id === `pageWidgetContainer${this.pdf.currentPage()}`
|
||||
) {
|
||||
if (!this._annotationManager.selected.length) {
|
||||
const editingAnnotation =
|
||||
(clickedElement as HTMLImageElement).src?.includes('edit.svg') || clickedElement.getAttribute('aria-label') === 'Edit';
|
||||
if (this._multiSelectService.active() && !editingAnnotation) {
|
||||
if (
|
||||
clickedElement.querySelector('#selectionrect') ||
|
||||
clickedElement.id === `pageWidgetContainer${this.pdf.currentPage()}`
|
||||
) {
|
||||
if (!this._annotationManager.selected.length) {
|
||||
this._multiSelectService.deactivate();
|
||||
}
|
||||
} else {
|
||||
this._multiSelectService.deactivate();
|
||||
}
|
||||
} else {
|
||||
this._multiSelectService.deactivate();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user