From e751ee3c1bf510bd1acf09d5133853cc048bb993 Mon Sep 17 00:00:00 2001 From: Wilfred Asomani Date: Wed, 1 Feb 2023 15:14:52 +0000 Subject: [PATCH] web/satellite: dismiss access grant modal tooltip This change fixes an issue where the tooltip on the create access grant modal will not dismiss even after hovering/clicking outside of it. Issue: https://github.com/storj/storj/issues/5502 Change-Id: Ib6c042f3b18566bfeb4b05cb50acfa5e5ca1fbb9 --- .../src/components/accessGrants/modals/CreateForm.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/satellite/src/components/accessGrants/modals/CreateForm.vue b/web/satellite/src/components/accessGrants/modals/CreateForm.vue index db754c3b4..e25a8170e 100644 --- a/web/satellite/src/components/accessGrants/modals/CreateForm.vue +++ b/web/satellite/src/components/accessGrants/modals/CreateForm.vue @@ -373,15 +373,15 @@ function toggleTooltipHover(type, action): void { if (tooltipHover.value === '' && action === 'over') { tooltipHover.value = type; return; - } else if (tooltipHover === type && action === 'leave') { + } else if (tooltipHover.value === type && action === 'leave') { tooltipVisibilityTimer.value = setTimeout(() => { tooltipHover.value = ''; - },750); + }, 750); return; } else if (tooltipHover.value === type && action === 'over') { tooltipVisibilityTimer.value && clearTimeout(tooltipVisibilityTimer.value); return; - } else if (tooltipHover !== type) { + } else if (tooltipHover.value !== type) { tooltipVisibilityTimer.value && clearTimeout(tooltipVisibilityTimer.value); tooltipHover.value = type; }