File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
modules/workspaces/DynamicParameter Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ interface ComboboxProps {
34
34
onInputChange ?: ( value : string ) => void ;
35
35
onKeyDown ?: KeyboardEventHandler < HTMLInputElement > ;
36
36
onSelect : ( value : string ) => void ;
37
+ id ?: string ;
37
38
}
38
39
39
40
type ComboboxOption = {
@@ -53,6 +54,7 @@ export const Combobox: FC<ComboboxProps> = ({
53
54
onInputChange,
54
55
onKeyDown,
55
56
onSelect,
57
+ id,
56
58
} ) => {
57
59
const [ managedOpen , setManagedOpen ] = useState ( false ) ;
58
60
const [ managedInputValue , setManagedInputValue ] = useState ( "" ) ;
@@ -78,6 +80,7 @@ export const Combobox: FC<ComboboxProps> = ({
78
80
< Popover open = { isOpen } onOpenChange = { handleOpenChange } >
79
81
< PopoverTrigger asChild >
80
82
< Button
83
+ id = { id }
81
84
variant = "outline"
82
85
aria-expanded = { isOpen }
83
86
className = "w-full justify-between group"
Original file line number Diff line number Diff line change @@ -453,6 +453,7 @@ const ParameterField: FC<ParameterFieldProps> = ({
453
453
case "dropdown" : {
454
454
return (
455
455
< Combobox
456
+ id = { id }
456
457
value = { value ?? "" }
457
458
onSelect = { ( value ) => onChange ( value ) }
458
459
options = { parameter . options . map ( ( option ) => ( {
You can’t perform that action at this time.
0 commit comments