From f156b3517ab91c1e90c832ef04cc9b687f71dccf Mon Sep 17 00:00:00 2001 From: Melloware Date: Tue, 1 Oct 2024 16:31:03 -0400 Subject: [PATCH] Fix formatting (#7290) --- 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) {