diff --git a/src/app/application/components/app-collection/AppCollection.vue b/src/app/application/components/app-collection/AppCollection.vue index 00209dfe6..d7332f15a 100644 --- a/src/app/application/components/app-collection/AppCollection.vue +++ b/src/app/application/components/app-collection/AppCollection.vue @@ -119,7 +119,6 @@ function getRowAttributes(row: Row): Record { return attributes } - const click = (e: MouseEvent) => { const $tr = (e.target as HTMLElement).closest('tr') if ($tr) { @@ -129,7 +128,8 @@ const click = (e: MouseEvent) => { } return prev }, null) - if ($a !== null && $a.closest('tr, li') === $tr) { + if ((window.getSelection()?.isCollapsed ?? true) && $a !== null && $a.closest('tr, li') === $tr) { + e.preventDefault() $a.click() } } diff --git a/src/app/common/SummaryView.vue b/src/app/common/SummaryView.vue index cbbd31adb..48c2af5f2 100644 --- a/src/app/common/SummaryView.vue +++ b/src/app/common/SummaryView.vue @@ -32,7 +32,7 @@ onClickOutside( slideOutRef, useThrottleFn((event: PointerEvent) => { const $el = event.target as HTMLElement - if (event.isTrusted && $el.nodeName.toLowerCase() !== 'a') { + if ((window.getSelection()?.isCollapsed ?? true) && !event.defaultPrevented && event.isTrusted && $el.nodeName.toLowerCase() !== 'a') { emit('close') } }, 1, true, false),