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

@@ -78,7 +78,13 @@ export const FilamentEdit: React.FC<IResourceComponentsProps> = () => {
return value;
}}
>
<Select {...selectProps} allowClear />
<Select
{...selectProps}
allowClear
filterOption={(input, option) =>
typeof option?.label === "string" && option?.label.toLowerCase().includes(input.toLowerCase())
}
/>
</Form.Item>
<Form.Item
label={t("filament.fields.color_hex")}