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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user