From d4a6b042ef1937162e16492392db93cd943065f1 Mon Sep 17 00:00:00 2001 From: pro Date: Thu, 29 Jan 2026 21:38:54 +0900 Subject: [PATCH] =?UTF-8?q?fix:=EB=AA=A8=EB=8B=AC=20=EB=8B=AB=EA=B8=B0=20?= =?UTF-8?q?=EB=B2=84=ED=8A=BC=EC=97=90=20=EC=9D=B4=EB=B2=A4=ED=8A=B8=20?= =?UTF-8?q?=EB=8D=B8=EB=A6=AC=EA=B2=8C=EC=9D=B4=EC=85=98=20=EC=A0=81?= =?UTF-8?q?=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - data-close-modal 속성으로 닫기 버튼 식별 - 부모 요소에서 클릭 이벤트 감지하여 모달 닫기 Co-Authored-By: Claude Opus 4.5 --- resources/views/sales/managers/index.blade.php | 7 +++++++ .../views/sales/managers/partials/edit-modal.blade.php | 4 ++-- .../views/sales/managers/partials/show-modal.blade.php | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/resources/views/sales/managers/index.blade.php b/resources/views/sales/managers/index.blade.php index de19a862..14c9fded 100644 --- a/resources/views/sales/managers/index.blade.php +++ b/resources/views/sales/managers/index.blade.php @@ -305,5 +305,12 @@ class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none foc closePartnerModal(); } }); + +// 이벤트 델리게이션: data-close-modal 속성을 가진 요소 클릭 시 모달 닫기 +document.getElementById('partnerModal').addEventListener('click', function(e) { + if (e.target.closest('[data-close-modal]')) { + closePartnerModal(); + } +}); @endpush diff --git a/resources/views/sales/managers/partials/edit-modal.blade.php b/resources/views/sales/managers/partials/edit-modal.blade.php index 57b5d29d..93451266 100644 --- a/resources/views/sales/managers/partials/edit-modal.blade.php +++ b/resources/views/sales/managers/partials/edit-modal.blade.php @@ -6,7 +6,7 @@

영업파트너 수정

{{ $partner->name }} ({{ $partner->email }})

- diff --git a/resources/views/sales/managers/partials/show-modal.blade.php b/resources/views/sales/managers/partials/show-modal.blade.php index ccd3bc17..5acedb67 100644 --- a/resources/views/sales/managers/partials/show-modal.blade.php +++ b/resources/views/sales/managers/partials/show-modal.blade.php @@ -30,7 +30,7 @@ -