From e6a3d80faaf5b67d95d34c367ad9276698f4c2d6 Mon Sep 17 00:00:00 2001 From: Robert Swoboda <53216935+Gengar-i@users.noreply.github.com> Date: Tue, 3 Oct 2023 13:39:51 +0200 Subject: [PATCH] tooltips delay and show fixed --- .../Resources/public/js/scripts/helpers/tooltips.helper.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bundle/Resources/public/js/scripts/helpers/tooltips.helper.js b/src/bundle/Resources/public/js/scripts/helpers/tooltips.helper.js index 8215c584be..d38dc47f36 100644 --- a/src/bundle/Resources/public/js/scripts/helpers/tooltips.helper.js +++ b/src/bundle/Resources/public/js/scripts/helpers/tooltips.helper.js @@ -155,9 +155,10 @@ } } + const { delayShow, delayHide } = tooltipNode.dataset; const delay = { - show: parseInt(tooltipNode.dataset.delayShow, 10) ?? 150, - hide: parseInt(tooltipNode.dataset.delayHide, 10) ?? 75, + show: delayShow ? parseInt(delayShow, 10) : 150, + hide: delayHide ? parseInt(delayHide, 10) : 75, }; const extraClass = tooltipNode.dataset.tooltipExtraClass ?? ''; const placement = tooltipNode.dataset.tooltipPlacement ?? 'bottom';