From 791076a6c8762fee6debe67634bd0e4cca5231d1 Mon Sep 17 00:00:00 2001 From: melloware Date: Tue, 1 Oct 2024 16:30:24 -0400 Subject: [PATCH] Fix formatting --- components/lib/tooltip/Tooltip.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/lib/tooltip/Tooltip.js b/components/lib/tooltip/Tooltip.js index 6d42c43707..8e58e5d886 100644 --- a/components/lib/tooltip/Tooltip.js +++ b/components/lib/tooltip/Tooltip.js @@ -173,8 +173,8 @@ export const Tooltip = React.memo( }; const show = (e) => { - if(e.type && e.type==="focus") setMultipleFocusEvents(true); - + if (e.type && e.type === 'focus') setMultipleFocusEvents(true); + currentTargetRef.current = e.currentTarget; const disabled = isDisabled(currentTargetRef.current); const empty = isContentEmpty(isShowOnDisabled(currentTargetRef.current) && disabled ? currentTargetRef.current.firstChild : currentTargetRef.current); @@ -201,8 +201,8 @@ export const Tooltip = React.memo( }; const hide = (e) => { - if(e && e.type==="blur") setMultipleFocusEvents(false); - + if (e && e.type === 'blur') setMultipleFocusEvents(false); + clearTimeouts(); if (visibleState) {