From 80adce9c0c35e672fd330a56e6e6064f194fac25 Mon Sep 17 00:00:00 2001 From: Maximilian Harz Date: Mon, 10 Mar 2025 20:12:46 +0100 Subject: [PATCH] Use defaultValue instead of selected --- src/Components/Input/ComboBoxInput.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Components/Input/ComboBoxInput.tsx b/src/Components/Input/ComboBoxInput.tsx index b6712a93..62711c4d 100644 --- a/src/Components/Input/ComboBoxInput.tsx +++ b/src/Components/Input/ComboBoxInput.tsx @@ -16,9 +16,10 @@ const ComboBoxInput = ({ id, options, value, onValueChange }: ComboBoxProps) => id={id} className='tw-form-select tw-block tw-w-full tw-py-2 tw-px-4 tw-border tw-border-gray-300 rounded-md tw-shadow-sm tw-text-sm focus:tw-outline-none focus:tw-ring-indigo-500 focus:tw-border-indigo-500 sm:tw-text-sm' onChange={handleChange} + defaultValue={value} > {options.map((o) => ( - ))}