mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-13 04:13:35 +08:00
Fix: Click the blank area to prevent UpdateLogSheet from closing. (#18085)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user