From 7c06980f30c5b405375e2e5098c979e8860fb9a9 Mon Sep 17 00:00:00 2001 From: salisdemos <40487461+salisdemos@users.noreply.github.com> Date: Tue, 5 Sep 2023 15:15:21 +0200 Subject: [PATCH] fix(refs T34571): Shorten Delay for destroytooltip (#512) to allow clicking on Buttons where the tooltip has been after hovering off. 300 ms should be enough for a rebounce and for normal user interaction to not click before the tooltip has been removed. Actually we need this tweak only in cases, where the z-index get increased from outside with a class that defines the z-index after `z-below-zero` in the css files --- src/components/DpTooltip/utils/tooltip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DpTooltip/utils/tooltip.js b/src/components/DpTooltip/utils/tooltip.js index 1a7f6580d..f4f5cbeb2 100644 --- a/src/components/DpTooltip/utils/tooltip.js +++ b/src/components/DpTooltip/utils/tooltip.js @@ -27,7 +27,7 @@ const hideTooltip = (tooltipEl) => { tooltipEl.classList.add('z-below-zero') tooltipEl.classList.add('opacity-0') - handleTimeoutForDestroy = setTimeout(() => deleteTooltip(tooltipEl), 3000) + handleTimeoutForDestroy = setTimeout(() => deleteTooltip(tooltipEl), 300) } const createTooltip = (id, el, value, container, classes) => {