UI/Modules: individual roles members

This commit is contained in:
Johannes Kirschbauer
2024-11-19 13:47:43 +01:00
committed by hsjobeki
parent bb6abd44aa
commit 176b07d6d1
7 changed files with 209 additions and 32 deletions

View File

@@ -126,7 +126,16 @@ export function SelectInput(props: SelectInputpProps) {
type="button"
class="select select-bordered flex items-center gap-2"
ref={setReference}
popovertarget={_id}
formnovalidate
onClick={() => {
const popover = document.getElementById(_id);
if (popover) {
popover.togglePopover(); // Show or hide the popover
}
}}
// TODO: Use native popover once Webkti supports it within <form>
// popovertarget={_id}
// popovertargetaction="toggle"
>
<Show when={props.adornment && props.adornment.position === "start"}>
{props.adornment?.content}