From 5e9ab45191d85d105b5edf7d9d785375f65b891c Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Mon, 27 Apr 2026 14:40:39 +0200 Subject: [PATCH] refactor: use React Portals for note modals to ensure foreground visibility --- src/components/PricingView.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/PricingView.tsx b/src/components/PricingView.tsx index 62389ad..28c6c15 100644 --- a/src/components/PricingView.tsx +++ b/src/components/PricingView.tsx @@ -809,7 +809,7 @@ export function PricingView({ data, headers, onSaveRow, onCaptureState, onEdit, )} {/* ── Anna Note Editor Modal ── */} - {annaEditor && ( + {annaEditor && createPortal(
@@ -838,11 +838,12 @@ export function PricingView({ data, headers, onSaveRow, onCaptureState, onEdit,
-
+ , + document.body )} {/* ── Note Editor Modal ── */} - {noteEditor && ( + {noteEditor && createPortal(
@@ -871,7 +872,8 @@ export function PricingView({ data, headers, onSaveRow, onCaptureState, onEdit,
-
+ , + document.body )}