Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
move dropdown-menu div to the Dropdown component
Browse files Browse the repository at this point in the history
  • Loading branch information
ewof committed Feb 15, 2023
1 parent c8363e1 commit d71d843
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/shared/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ const Dropdown: Component<{ children: JSX.Element; label: string }> = (
<ChevronDown />
{props.label}
</Button>
<Show when={open()}>{props.children}</Show>
<Show when={open()}>
<div class="dropdown-menu">
{props.children}
</div>
</Show>
</div>
);
};
Expand Down

0 comments on commit d71d843

Please sign in to comment.