Skip to content

Commit e390ba0

Browse files
authored
feat(dropdowns): added searchbox to the operation dropdown for all blocks (#2266)
1 parent 2f0509a commit e390ba0

File tree

1 file changed

+4
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/dropdown

1 file changed

+4
-1
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/dropdown/dropdown.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,8 @@ export function Dropdown({
363363
)
364364
}, [multiSelect, multiValues, optionMap])
365365

366+
const isSearchable = subBlockId === 'operation'
367+
366368
return (
367369
<Combobox
368370
options={comboboxOptions}
@@ -375,14 +377,15 @@ export function Dropdown({
375377
editable={false}
376378
onOpenChange={(open) => {
377379
if (open) {
378-
// Fetch options when the dropdown is opened to ensure freshness
379380
void fetchOptionsIfNeeded()
380381
}
381382
}}
382383
overlayContent={multiSelectOverlay}
383384
multiSelect={multiSelect}
384385
isLoading={isLoadingOptions}
385386
error={fetchError}
387+
searchable={isSearchable}
388+
searchPlaceholder='Search operations...'
386389
/>
387390
)
388391
}

0 commit comments

Comments
 (0)