fix(filters): quality multi select not closing (#725)

fix: drop down menu interactions
This commit is contained in:
soup 2023-03-05 16:01:01 +01:00 committed by GitHub
parent bd2769f3f2
commit 25e2dbf9d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ export const MultiSelect = ({
}: FieldProps) => (
<RMSC
{...field}
options={[...[...options, ...field.value.map((i: MultiSelectOption) => ({ value: i.value ?? i, label: i.label ?? i }))].reduce((map, obj) => map.set(obj.value, obj), new Map()).values()]}
options={options}
disabled={disabled}
labelledBy={name}
isCreatable={creatable}
@ -87,6 +87,7 @@ export const MultiSelect = ({
);
};
interface IndexerMultiSelectOption {
id: number;
name: string;