Skip to content

Commit

Permalink
ISTE-8 Modification in all select for Multiselect ( #784 )
Browse files Browse the repository at this point in the history
ISTE-8 Modification in all select for Multiselect
  • Loading branch information
anilsingha-eGov authored Apr 29, 2024
2 parents 51f872c + ce1b545 commit acca060
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@ const MultiSelectDropdown = ({
}
}, [active]);

useEffect(()=>{
if (alreadyQueuedSelectedState?.length === filteredOptions?.length){
setIsSelected(true)
}else{
setIsSelected(false)

}
},[alreadyQueuedSelectedState])

function handleOutsideClickAndSubmitSimultaneously() {
setActive(false);
}
Expand Down

0 comments on commit acca060

Please sign in to comment.