Skip to content

Commit

Permalink
fix(refs T34571): Shorten Delay for destroytooltip (#512)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
salisdemos authored Sep 5, 2023
1 parent 57b9b59 commit 7c06980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DpTooltip/utils/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 7c06980

Please sign in to comment.