From d929efba898e4d8ab672696702c678f74a7c9aa9 Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Thu, 3 Sep 2026 17:40:47 +0200 Subject: [PATCH] Reset Tooltip Details state on native clear --- mods/tooltip-details.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/tooltip-details.lua b/mods/tooltip-details.lua index ba083b4..df87a8d 100644 --- a/mods/tooltip-details.lua +++ b/mods/tooltip-details.lua @@ -240,7 +240,9 @@ module.enable = function(self) -- ClassicAPI fires this after the native unit-tooltip builder completes. -- This replaces OnShow + UPDATE_MOUSEOVER_UNIT identity refreshes. GameTooltip:HookScript("OnTooltipSetUnit", UpdateTooltip) - GameTooltip:HookScript("OnHide", ResetTooltipState) + -- OnTooltipCleared fires for every new Set* path, not only when the frame + -- hides, so unit-only state cannot leak into a following item/spell tooltip. + GameTooltip:HookScript("OnTooltipCleared", ResetTooltipState) -- StatusBar already has a native value-change script, so health text can be -- event-driven too. No permanent OnUpdate is needed.