From 3bb025e276b3db3250f09a7337ab329c3c957fdb Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Thu, 21 Jul 2022 01:44:03 -0300 Subject: [PATCH] fix(fuselage): Multiselect show (#785) --- packages/fuselage/src/components/MultiSelect/MultiSelect.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/fuselage/src/components/MultiSelect/MultiSelect.tsx b/packages/fuselage/src/components/MultiSelect/MultiSelect.tsx index 01e466b12e..90874e786f 100644 --- a/packages/fuselage/src/components/MultiSelect/MultiSelect.tsx +++ b/packages/fuselage/src/components/MultiSelect/MultiSelect.tsx @@ -143,12 +143,9 @@ export const MultiSelect = forwardRef( }; const handleClick = useMutableCallback(() => { - if (innerRef.current?.classList.contains('focus-visible')) { - removeFocusClass(); + if (visible === AnimatedVisibility.VISIBLE) { return hide(); } - - innerRef.current?.classList.add('focus-visible'); innerRef.current?.focus(); return show(); });