From 2a709786a7d04147cb86d86d60dc16d847acae56 Mon Sep 17 00:00:00 2001 From: Parikshit85 Date: Wed, 28 Feb 2024 12:27:05 +0530 Subject: [PATCH] Fix: Filter's dropdown bugfix --- .../components/shared/customAutoComplete/index.tsx | 1 + .../src/components/shared/filtersComponent/index.tsx | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/src/ui/src/components/shared/customAutoComplete/index.tsx b/src/ui/src/components/shared/customAutoComplete/index.tsx index aa23b03d..34035299 100644 --- a/src/ui/src/components/shared/customAutoComplete/index.tsx +++ b/src/ui/src/components/shared/customAutoComplete/index.tsx @@ -205,6 +205,7 @@ const CustomAutoComplete = ({ /> ); }} + isOptionEqualToValue={isOptionEqualToValue} renderOption={(props, option, { selected }) => (
  • { + return option.id === value.id; + }} size="medium" /> ); @@ -84,6 +87,9 @@ export default function FiltersComponent({ return ""; } }} + isOptionEqualToValue={(option: any, value: any) => { + return option.id === value.id; + }} size="medium" /> ); @@ -113,6 +119,9 @@ export default function FiltersComponent({ return ""; } }} + isOptionEqualToValue={(option: any, value: any) => { + return option.id === value.id; + }} size="medium" /> ); @@ -142,6 +151,9 @@ export default function FiltersComponent({ return ""; } }} + isOptionEqualToValue={(option: any, value: any) => { + return option.id === value.id; + }} size="medium" /> );