Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix (beta): fix sidebar document close button (#13136)

shamoon370a0a29bad0
diff --git a/src-ui/src/app/components/app-frame/app-frame.component.html b/src-ui/src/app/components/app-frame/app-frame.component.html
index 475bbac0c..052ea386d 100644
--- a/src-ui/src/app/components/app-frame/app-frame.component.html
+++ b/src-ui/src/app/components/app-frame/app-frame.component.html
@@ -150,7 +150,8 @@
[disablePopover]="!slimSidebarEnabled" placement="end" container="body" triggers="mouseenter:mouseleave"
popoverClass="popover-slim">
<i-bs class="me-2" name="file-text"></i-bs><span>{{d.title | documentTitle}}</span>
- <span class="close flex-column justify-content-center" (click)="closeDocument(d); $event.preventDefault()">
+ <span class="close flex-column justify-content-center"
+ (click)="$event.preventDefault(); $event.stopPropagation(); closeDocument(d)">
<i-bs name="x"></i-bs>
</span>
</a>