Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

address review (claude): clear hover state on outside-click for sticky-hover touch dismissal (#2376)

Adam Eivy9c98716b62ae
diff --git a/client/src/components/ui/InfoTooltip.jsx b/client/src/components/ui/InfoTooltip.jsx
index 431bf84069..dc52a9ef72 100644
--- a/client/src/components/ui/InfoTooltip.jsx
+++ b/client/src/components/ui/InfoTooltip.jsx
@@ -31,7 +31,11 @@ export default function InfoTooltip({
setHovered(false);
}, []);
- useClickOutside(wrapRef, open, () => setOpen(false));
+ // Clear BOTH states on outside click: on touch, a tap synthesizes mouseenter
+ // (setting `hovered`) alongside the click that latches `open`, and some mobile
+ // browsers hold sticky-hover without a matching mouseleave — so clearing only
+ // `open` could strand the panel open on the very touch path this targets.
+ useClickOutside(wrapRef, open, close);
useEffect(() => {
if (!open && !hovered) return undefined;