S/N 관리·연속번호생성 Dialog 모두 onInteractOutside 차단 (자식 Dialog 닫힘 시 부모 도미노 차단 완성)

이전 커밋에서 메인 등록 Dialog에만 onInteractOutside 추가 — 자식(S/N)·손자(연속번호) Dialog가 닫힐 때 이벤트가 메인까지 도미노로 전파되며 여전히 메인이 닫혔음.

해결: nested Dialog 4개(견적/주문 각각 S/N + 연속번호) 모두에 onInteractOutside={(e) => e.preventDefault()} 추가.
사용자는 X / 취소 / 확인 / 생성 버튼으로만 명시적으로 각 Dialog 닫음.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
hjjeong
2026-05-11 10:39:49 +09:00
parent 447090faca
commit 0a97f2ec38
2 changed files with 4 additions and 4 deletions
@@ -876,7 +876,7 @@ export default function SalesEstimatePage() {
{/* S/N 관리 — wace fn_openItemSnPopup (테이블 + 연속번호생성) */}
<Dialog open={serialDialogOpen} onOpenChange={setSerialDialogOpen}>
<DialogContent className="max-w-2xl">
<DialogContent className="max-w-2xl" onInteractOutside={(e) => e.preventDefault()}>
<DialogHeader>
<DialogTitle className="text-center">S/N </DialogTitle>
<DialogDescription className="sr-only"> / </DialogDescription>
@@ -925,7 +925,7 @@ export default function SalesEstimatePage() {
{/* 연속번호 생성 — wace fn_openItemSequentialSnPopup */}
<Dialog open={seqDialogOpen} onOpenChange={setSeqDialogOpen}>
<DialogContent className="max-w-sm">
<DialogContent className="max-w-sm" onInteractOutside={(e) => e.preventDefault()}>
<DialogHeader>
<DialogTitle> </DialogTitle>
<DialogDescription className="sr-only"> S/N </DialogDescription>
@@ -767,7 +767,7 @@ export default function SalesOrderPage() {
{/* S/N 관리 — wace fn_openItemSnPopup */}
<Dialog open={serialDialogOpen} onOpenChange={setSerialDialogOpen}>
<DialogContent className="max-w-2xl">
<DialogContent className="max-w-2xl" onInteractOutside={(e) => e.preventDefault()}>
<DialogHeader>
<DialogTitle className="text-center">S/N </DialogTitle>
<DialogDescription className="sr-only"> / </DialogDescription>
@@ -814,7 +814,7 @@ export default function SalesOrderPage() {
{/* 연속번호 생성 — wace fn_openItemSequentialSnPopup */}
<Dialog open={seqDialogOpen} onOpenChange={setSeqDialogOpen}>
<DialogContent className="max-w-sm">
<DialogContent className="max-w-sm" onInteractOutside={(e) => e.preventDefault()}>
<DialogHeader>
<DialogTitle> </DialogTitle>
<DialogDescription className="sr-only"> S/N </DialogDescription>