mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
feat(dropdowns): added searchbox to the operation dropdown for all blocks (#2266)
This commit is contained in:
@@ -363,6 +363,8 @@ export function Dropdown({
|
||||
)
|
||||
}, [multiSelect, multiValues, optionMap])
|
||||
|
||||
const isSearchable = subBlockId === 'operation'
|
||||
|
||||
return (
|
||||
<Combobox
|
||||
options={comboboxOptions}
|
||||
@@ -375,7 +377,6 @@ export function Dropdown({
|
||||
editable={false}
|
||||
onOpenChange={(open) => {
|
||||
if (open) {
|
||||
// Fetch options when the dropdown is opened to ensure freshness
|
||||
void fetchOptionsIfNeeded()
|
||||
}
|
||||
}}
|
||||
@@ -383,6 +384,8 @@ export function Dropdown({
|
||||
multiSelect={multiSelect}
|
||||
isLoading={isLoadingOptions}
|
||||
error={fetchError}
|
||||
searchable={isSearchable}
|
||||
searchPlaceholder='Search operations...'
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user