From 3f5045d3a8c5a08acd18d683c9862aa3651422a7 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Wed, 2 Dec 2020 13:17:30 -0300 Subject: [PATCH] Adding Click Outside --- lib/click-outside/click-outside.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/click-outside/click-outside.tsx b/lib/click-outside/click-outside.tsx index 2af0497a6..0cb491aef 100644 --- a/lib/click-outside/click-outside.tsx +++ b/lib/click-outside/click-outside.tsx @@ -11,11 +11,9 @@ const ClickOutside = ( { active = true, onClick, children }: ClickOutsideProps, ref: Ref | null | any = {} ) => { - console.log('--------', active, '-----------') const innerRef = ref?.current const handleClick = (event: any) => { - console.log(innerRef, event.target) if (!hasParent(event.target, innerRef)) { if (typeof onClick === 'function') { event.preventDefault()