Skip to content

Commit

Permalink
fix: custom modal
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Sep 11, 2024
1 parent d99dfbc commit 8d03308
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/renderer/src/components/ui/modal/stacked/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,16 +257,17 @@ export const ModalInternal = memo(
currentIsClosing ? "!pointer-events-none" : "!pointer-events-auto",
modalContainerClassName,
)}
onClick={
modal ? (clickOutsideToDismiss && canClose ? dismiss : noticeModal) : undefined
}
onPointerUp={handleDetectSelectEnd}
onClick={handleClickOutsideToDismiss}
style={zIndexStyle}
>
{DragBar}
<div
className={cn("contents", modalClassName)}
onClick={stopPropagation}
ref={modalElementRef}
onSelect={handleSelectStart}
onKeyUp={handleDetectSelectEnd}
>
<CustomModalComponent>{finalChildren}</CustomModalComponent>
</div>
Expand Down

0 comments on commit 8d03308

Please sign in to comment.