Skip to content

Commit

Permalink
Fix: Filter's dropdown bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Parikshit85 committed Feb 28, 2024
1 parent 15227f1 commit 2a70978
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ui/src/components/shared/customAutoComplete/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ const CustomAutoComplete = ({
/>
);
}}
isOptionEqualToValue={isOptionEqualToValue}
renderOption={(props, option, { selected }) => (
<li {...props}>
<Checkbox
Expand Down
12 changes: 12 additions & 0 deletions src/ui/src/components/shared/filtersComponent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ export default function FiltersComponent({
return "";
}
}}
isOptionEqualToValue={(option: any, value: any) => {
return option.id === value.id;
}}
size="medium"
/>
);
Expand Down Expand Up @@ -84,6 +87,9 @@ export default function FiltersComponent({
return "";
}
}}
isOptionEqualToValue={(option: any, value: any) => {
return option.id === value.id;
}}
size="medium"
/>
);
Expand Down Expand Up @@ -113,6 +119,9 @@ export default function FiltersComponent({
return "";
}
}}
isOptionEqualToValue={(option: any, value: any) => {
return option.id === value.id;
}}
size="medium"
/>
);
Expand Down Expand Up @@ -142,6 +151,9 @@ export default function FiltersComponent({
return "";
}
}}
isOptionEqualToValue={(option: any, value: any) => {
return option.id === value.id;
}}
size="medium"
/>
);
Expand Down

0 comments on commit 2a70978

Please sign in to comment.