diff --git a/packages/fuselage/src/components/Dropdown/index.js b/packages/fuselage/src/components/Dropdown/index.js index 4f0740f99a..877fc84174 100644 --- a/packages/fuselage/src/components/Dropdown/index.js +++ b/packages/fuselage/src/components/Dropdown/index.js @@ -74,8 +74,11 @@ const Dropdown = ({ children, overlay }) => { ); const onClick = useCallback(() => { - ref?.current?.focus() && show(); - ref?.current?.classList.add('focus-visible'); + show(); + if (ref && ref.current) { + ref.current.focus(); + ref.current.classList.add('focus-visible'); + } }, [show]); return (