From 16f42c35048bce88d13548bfd1b3a838da32eb7f Mon Sep 17 00:00:00 2001 From: DIonysos Dajka Date: Tue, 16 Jun 2020 13:53:34 +0200 Subject: [PATCH] fix(usePopOverState): Remove onClickOutside function --- src/PopOver/usePopOverState.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/PopOver/usePopOverState.js b/src/PopOver/usePopOverState.js index 8e6b9c6e..d7bd614c 100644 --- a/src/PopOver/usePopOverState.js +++ b/src/PopOver/usePopOverState.js @@ -1,8 +1,6 @@ import {useState, useEffect, useRef} from 'react'; -import useOnClickOutside from '../useOnClickOutside'; - -function usePopOverState({openDelay, popOverRef = null}) { +function usePopOverState({openDelay}) { const [isOpen, setOpen] = useState(false); const timeoutRef = useRef(); const isMounted = useRef(true); @@ -45,8 +43,6 @@ function usePopOverState({openDelay, popOverRef = null}) { resetTimeout(); } - useOnClickOutside(popOverRef, close, isOpen); - return { isOpen, open,