Skip to content

Commit 0c01e97

Browse files
committed
feat: enhance ComboboxSelect input to show selected label
1 parent be88f69 commit 0c01e97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

thingconnect.pulse.client/src/components/common/ComboboxSelect.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ export function ComboboxSelect({
7272
<Combobox.Control>
7373
<Combobox.Input
7474
placeholder={placeholder || 'Select an option'}
75+
value={
76+
collection.items.find((item) => item.value === selectedValue)?.label || ''
77+
}
7578
/>
7679
<Combobox.IndicatorGroup>
7780
<Combobox.ClearTrigger

0 commit comments

Comments
 (0)