Client: Enabled search in vendor/filament dropdown

Closes #60
This commit is contained in:
Donkie
2023-08-12 21:10:44 +02:00
parent ecabc425c3
commit 6934748b14
4 changed files with 28 additions and 4 deletions

View File

@@ -96,7 +96,13 @@ export const SpoolCreate: React.FC<IResourceComponentsProps & CreateOrCloneProps
},
]}
>
<Select options={filamentOptions} />
<Select
options={filamentOptions}
showSearch
filterOption={(input, option) =>
typeof option?.label === "string" && option?.label.toLowerCase().includes(input.toLowerCase())
}
/>
</Form.Item>
<Form.Item
label={t("spool.fields.used_weight")}