From 82e3651ba4aaeb215859ae961c2fb8233696f313 Mon Sep 17 00:00:00 2001 From: Potenz Date: Wed, 1 Oct 2025 00:09:14 +0530 Subject: [PATCH] feat(ui fix) --- .../src/components/claims/claim-form.tsx | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/apps/Frontend/src/components/claims/claim-form.tsx b/apps/Frontend/src/components/claims/claim-form.tsx index 7b87487..f6624c2 100644 --- a/apps/Frontend/src/components/claims/claim-form.tsx +++ b/apps/Frontend/src/components/claims/claim-form.tsx @@ -471,15 +471,27 @@ export function ClaimForm({ await handleMHSubmit(nextForm); }; + // overlay click handler (close when clicking backdrop) + const onOverlayMouseDown = (e: React.MouseEvent) => { + // only close if clicked the backdrop itself (not inner modal) + if (e.target === e.currentTarget) { + onClose(); + } + }; + return ( -
- - +
+ + Insurance Claim Form -