Skip to content

Commit

Permalink
clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed Dec 6, 2024
1 parent d2fc523 commit 03d2533
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion components/src/molecules/DropdownMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 03d2533

Please sign in to comment.