From dca6008ddd34e9a888d11b5129deef0f6084a983 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Wed, 8 Jul 2026 23:16:27 -0700 Subject: [PATCH] [eric] providers: health pill ignores clickaway (first canvas click was silently killing it) --- frontend/src/app/components/overlays/ProviderHealthToast.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/components/overlays/ProviderHealthToast.tsx b/frontend/src/app/components/overlays/ProviderHealthToast.tsx index 4683e726..028157e0 100644 --- a/frontend/src/app/components/overlays/ProviderHealthToast.tsx +++ b/frontend/src/app/components/overlays/ProviderHealthToast.tsx @@ -28,7 +28,8 @@ export default function ProviderHealthToast() { 0} autoHideDuration={null} - onClose={() => dispatch(hideProviderHealthToast())} + // Clickaway would kill the pill on the user's first canvas click, before they read it; only the X or Reconnect dismisses. + onClose={(event, reason) => { if (reason !== 'clickaway') dispatch(hideProviderHealthToast()); }} anchorOrigin={{ vertical: 'bottom', horizontal: 'left' }} >