From 59f3245bf3a2cb5e98c80175f9c1b0bb8d701a2d Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Tue, 15 Nov 2022 16:38:46 +0100 Subject: [PATCH] fix(ui) - funnel isseues dropdown --- .../FunnelIssuesDropdown.tsx | 35 ++++++++++--------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/frontend/app/components/Dashboard/components/Funnels/FunnelIssuesDropdown/FunnelIssuesDropdown.tsx b/frontend/app/components/Dashboard/components/Funnels/FunnelIssuesDropdown/FunnelIssuesDropdown.tsx index 361337443..2dade061d 100644 --- a/frontend/app/components/Dashboard/components/Funnels/FunnelIssuesDropdown/FunnelIssuesDropdown.tsx +++ b/frontend/app/components/Dashboard/components/Funnels/FunnelIssuesDropdown/FunnelIssuesDropdown.tsx @@ -49,7 +49,8 @@ function FunnelIssuesDropdown() { } } - const onClickOutside = () => { + const onClickOutside = (e: any) => { + if (e.target.id === 'dd-button') return; if (isOpen) { setTimeout(() => { setIsOpen(false); @@ -85,21 +86,23 @@ function FunnelIssuesDropdown() { IndicatorSeparator: (): any => null, IndicatorsContainer: (): any => null, Control: ({ children, ...props }: any) => ( - - - { children } - - - + + + { children } + + + + ), Placeholder: (): any => null, SingleValue: (): any => null,