From ce1b5452da114a85ecd50ee09fe987b995890be4 Mon Sep 17 00:00:00 2001 From: chinmoy-eGov <115543497+chinmoy-eGov@users.noreply.github.com> Date: Mon, 29 Apr 2024 14:56:58 +0530 Subject: [PATCH] ISTE-8 Modification in all select for Multiselect --- .../hrms/src/components/pageComponents/Multiselect.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/Multiselect.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/Multiselect.js index 5fc8a2b33..7020d3f4a 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/Multiselect.js +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/Multiselect.js @@ -107,6 +107,15 @@ const MultiSelectDropdown = ({ } }, [active]); + useEffect(()=>{ + if (alreadyQueuedSelectedState?.length === filteredOptions?.length){ + setIsSelected(true) + }else{ + setIsSelected(false) + + } + },[alreadyQueuedSelectedState]) + function handleOutsideClickAndSubmitSimultaneously() { setActive(false); }