diff --git a/web/app/dashboard/ai-configs/_components/option-combobox.tsx b/web/app/dashboard/ai-configs/_components/option-combobox.tsx index fabe463..71f9e18 100644 --- a/web/app/dashboard/ai-configs/_components/option-combobox.tsx +++ b/web/app/dashboard/ai-configs/_components/option-combobox.tsx @@ -1,6 +1,7 @@ "use client" import { CheckIcon, ChevronsUpDownIcon } from "lucide-react" +import { useState } from "react" import { Button } from "@/components/ui/button" import { @@ -44,11 +45,12 @@ export function OptionCombobox({ onChange, }: OptionComboboxProps) { const t = useI18n() + const [open, setOpen] = useState(false) const selectedLabel = options.find((option) => option.value === value)?.label ?? placeholder return ( - + onChange(option.value)} + onSelect={() => { + onChange(option.value) + setOpen(false) + }} > option.value === value)?.label ?? placeholder return ( - + onChange(option.value)} + onSelect={() => { + onChange(option.value) + setOpen(false) + }} >