File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
apps/renderer/src/components/ui/modal/stacked Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,12 @@ export const ModalInternal = memo(
236
236
< Dialog . Portal >
237
237
{ Overlay }
238
238
< Dialog . DialogTitle className = "sr-only" > { title } </ Dialog . DialogTitle >
239
- < Dialog . Content asChild aria-describedby = { undefined } onOpenAutoFocus = { openAutoFocus } >
239
+ < Dialog . Content
240
+ asChild
241
+ aria-describedby = { undefined }
242
+ onPointerDownOutside = { ( event ) => event . preventDefault ( ) }
243
+ onOpenAutoFocus = { openAutoFocus }
244
+ >
240
245
< div
241
246
ref = { setEdgeElementRef }
242
247
className = { cn (
@@ -281,7 +286,12 @@ export const ModalInternal = memo(
281
286
< Dialog . Root modal = { modal } open onOpenChange = { onClose } >
282
287
< Dialog . Portal >
283
288
{ Overlay }
284
- < Dialog . Content asChild aria-describedby = { undefined } onOpenAutoFocus = { openAutoFocus } >
289
+ < Dialog . Content
290
+ asChild
291
+ aria-describedby = { undefined }
292
+ onPointerDownOutside = { ( event ) => event . preventDefault ( ) }
293
+ onOpenAutoFocus = { openAutoFocus }
294
+ >
285
295
< div
286
296
ref = { setEdgeElementRef }
287
297
className = { cn (
You can’t perform that action at this time.
0 commit comments