Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
fix(usePopOverState): Remove onClickOutside function
Browse files Browse the repository at this point in the history
  • Loading branch information
diondiondion committed Jun 16, 2020
1 parent 1eab643 commit 16f42c3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/PopOver/usePopOverState.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down Expand Up @@ -45,8 +43,6 @@ function usePopOverState({openDelay, popOverRef = null}) {
resetTimeout();
}

useOnClickOutside(popOverRef, close, isOpen);

return {
isOpen,
open,
Expand Down

0 comments on commit 16f42c3

Please sign in to comment.