Removed unecessary dropdown container on MultiSelectFieldInput (#9116)

There was an unecessary dropdown menu container div that was conflicting
with the recent refactor of dropdowns. The OverlayContainer component is
now at the root of the tree of a cell.
This commit is contained in:
Lucas Bordeau
2024-12-18 12:22:02 +01:00
committed by GitHub
parent 45214fe548
commit d895468ebe

View File

@ -1,4 +1,3 @@
import styled from '@emotion/styled';
import { useRef, useState } from 'react'; import { useRef, useState } from 'react';
import { useRecoilValue } from 'recoil'; import { useRecoilValue } from 'recoil';
import { Key } from 'ts-key-enum'; import { Key } from 'ts-key-enum';
@ -19,12 +18,6 @@ import { MenuItemMultiSelectTag } from 'twenty-ui';
import { isDefined } from '~/utils/isDefined'; import { isDefined } from '~/utils/isDefined';
import { turnIntoEmptyStringIfWhitespacesOnly } from '~/utils/string/turnIntoEmptyStringIfWhitespacesOnly'; import { turnIntoEmptyStringIfWhitespacesOnly } from '~/utils/string/turnIntoEmptyStringIfWhitespacesOnly';
const StyledRelationPickerContainer = styled.div`
left: -1px;
position: absolute;
top: -1px;
`;
type MultiSelectInputProps = { type MultiSelectInputProps = {
values: FieldMultiSelectValue; values: FieldMultiSelectValue;
hotkeyScope: string; hotkeyScope: string;
@ -115,8 +108,7 @@ export const MultiSelectInput = ({
} }
}} }}
> >
<StyledRelationPickerContainer ref={containerRef}> <DropdownMenu data-select-disable ref={containerRef}>
<DropdownMenu data-select-disable>
<DropdownMenuSearchInput <DropdownMenuSearchInput
value={searchFilter} value={searchFilter}
onChange={(event) => onChange={(event) =>
@ -144,7 +136,6 @@ export const MultiSelectInput = ({
})} })}
</DropdownMenuItemsContainer> </DropdownMenuItemsContainer>
</DropdownMenu> </DropdownMenu>
</StyledRelationPickerContainer>
</SelectableList> </SelectableList>
); );
}; };