From b9b56516228b63b6f0feb81cb0a9fb41c22aed2d Mon Sep 17 00:00:00 2001 From: Andrew Musgrave Date: Mon, 6 Jan 2020 13:08:08 -0500 Subject: [PATCH] Removed stale code --- src/components/Tooltip/Tooltip.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/components/Tooltip/Tooltip.tsx b/src/components/Tooltip/Tooltip.tsx index 129cd78f86f..624b2fe3d87 100644 --- a/src/components/Tooltip/Tooltip.tsx +++ b/src/components/Tooltip/Tooltip.tsx @@ -48,10 +48,6 @@ export function Tooltip({ const mouseEntered = useRef(false); useEffect(() => { - if (activatorContainer == null) { - return; - } - const firstFocusable = activatorContainer.current ? findFirstFocusableNode(activatorContainer.current) : null; @@ -106,7 +102,6 @@ export function Tooltip({ activatorContainerRef.current = node; } - // maybe add pre focus and pre blur???? function handleMouseEnter() { mouseEntered.current = true; handleFocus();