Revert "fix: Country Dropdown not closing with AddressInput " (#8174)

Reverts twentyhq/twenty#8147
This commit is contained in:
Baptiste Devessier
2024-10-29 15:55:18 +01:00
committed by GitHub
parent 31ecaf2a0d
commit d887a857ca
3 changed files with 9 additions and 19 deletions

View File

@ -71,7 +71,6 @@ export const Dropdown = ({
closeDropdown,
dropdownWidth,
setDropdownPlacement,
resetDropdown,
} = useDropdown(dropdownId);
const offsetMiddlewares = [];
@ -144,12 +143,6 @@ export const Dropdown = ({
[closeDropdown],
);
useEffect(() => {
return () => {
resetDropdown();
};
}, [resetDropdown]);
return (
<DropdownScope dropdownScopeId={getScopeIdFromComponentId(dropdownId)}>
<div ref={containerRef} className={className}>