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

Commit d71d843

Browse files
committed
move dropdown-menu div to the Dropdown component
1 parent c8363e1 commit d71d843

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/shared/Dropdown.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ const Dropdown: Component<{ children: JSX.Element; label: string }> = (
1919
<ChevronDown />
2020
{props.label}
2121
</Button>
22-
<Show when={open()}>{props.children}</Show>
22+
<Show when={open()}>
23+
<div class="dropdown-menu">
24+
{props.children}
25+
</div>
26+
</Show>
2327
</div>
2428
);
2529
};

0 commit comments

Comments
 (0)