Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: Click the blank area to prevent UpdateLogSheet from closing. (#18085)

balibabu61fa96ee0627
diff --git a/web/src/pages/dataset/compilation/update-log-sheet.tsx b/web/src/pages/dataset/compilation/update-log-sheet.tsx
index 86da2193bf..c93b6b2028 100644
--- a/web/src/pages/dataset/compilation/update-log-sheet.tsx
+++ b/web/src/pages/dataset/compilation/update-log-sheet.tsx
@@ -18,6 +18,10 @@ type UpdateLogSheetProps = {
title: string;
};
+function preventOutsideDismiss(e: Event) {
+ e.preventDefault();
+}
+
export function UpdateLogSheet({
open,
onOpenChange,
@@ -34,7 +38,10 @@ export function UpdateLogSheet({
return (
<Sheet open={open} onOpenChange={onOpenChange} modal={false}>
- <SheetContent className="flex flex-col">
+ <SheetContent
+ className="flex flex-col"
+ onInteractOutside={preventOutsideDismiss}
+ >
<SheetHeader>
<SheetTitle>{title}</SheetTitle>
</SheetHeader>