feat: keep the model registry dialog open on overlay click and Escape

Editing a large registry draft is easy to lose to a stray click; the
dialog now only closes via the X or Close button.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
m4
2026-07-22 11:03:24 +08:00
parent 18107d99e9
commit 7a61ac11cb
+6 -1
View File
@@ -27,7 +27,12 @@ export function ConfigDialog({ open, onOpenChange }: ConfigDialogProps) {
open={open}
onOpenChange={onOpenChange}
>
<DialogContent className="sm:max-w-6xl">
<DialogContent
className="sm:max-w-6xl"
onPointerDownOutside={(event) => event.preventDefault()}
onInteractOutside={(event) => event.preventDefault()}
onEscapeKeyDown={(event) => event.preventDefault()}
>
<DialogHeader>
<DialogTitle>Model registry</DialogTitle>
<DialogDescription>