From 03d25331941ecd37064c7ca66560e5f1941e1ac2 Mon Sep 17 00:00:00 2001 From: koji Date: Fri, 6 Dec 2024 11:48:21 -0500 Subject: [PATCH] clean up code --- components/src/molecules/DropdownMenu/index.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/components/src/molecules/DropdownMenu/index.tsx b/components/src/molecules/DropdownMenu/index.tsx index bf504011f1f..693d5f17330 100644 --- a/components/src/molecules/DropdownMenu/index.tsx +++ b/components/src/molecules/DropdownMenu/index.tsx @@ -139,7 +139,6 @@ export function DropdownMenu(props: DropdownMenuProps): JSX.Element { const fitsBelow = dropdownBottom <= availableHeight; const fitsAbove = dropdownRect.top - dropdownHeight >= scrollOffset; - // Determine position based on fit or default to `bottom` if (menuPlacement === 'auto') { setDropdownPosition(fitsBelow ? 'bottom' : fitsAbove ? 'top' : 'bottom'); } else {