Skip to content

Commit

Permalink
fix: auto completion can not open when focus in modal
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Sep 9, 2024
1 parent e218c13 commit 591f13b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/src/components/ui/modal/stacked/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export const ModalInternal = memo(
<Dialog.Root open onOpenChange={onClose} modal={modal}>
<Dialog.Portal>
<Dialog.DialogTitle className="sr-only">{title}</Dialog.DialogTitle>
<Dialog.Content asChild onFocusCapture={stopPropagation}>
<Dialog.Content asChild>
<div
ref={edgeElementRef}
className={cn(
Expand Down Expand Up @@ -265,7 +265,7 @@ export const ModalInternal = memo(
<Wrapper>
<Dialog.Root modal={modal} open onOpenChange={onClose}>
<Dialog.Portal>
<Dialog.Content asChild onFocusCapture={stopPropagation}>
<Dialog.Content asChild>
<div
ref={edgeElementRef}
style={zIndexStyle}
Expand Down

0 comments on commit 591f13b

Please sign in to comment.