Fixed dropdown bugs on 0.34 (#9000)

- New task dropdown wasn't using the proper dropdown id
- Action menu triggered by context menu (right click) on table cell was
listening in edit mode.
This commit is contained in:
Lucas Bordeau
2024-12-10 16:01:03 +01:00
committed by GitHub
parent b0595e452a
commit 013eda4a32
11 changed files with 62 additions and 29 deletions

View File

@ -21,10 +21,6 @@ type StyledContainerProps = {
const StyledContainerActionMenuDropdown = styled.div<StyledContainerProps>`
align-items: flex-start;
background: ${({ theme }) => theme.background.secondary};
border: 1px solid ${({ theme }) => theme.border.color.light};
border-radius: ${({ theme }) => theme.border.radius.md};
box-shadow: ${({ theme }) => theme.boxShadow.strong};
display: flex;
flex-direction: column;
@ -33,7 +29,8 @@ const StyledContainerActionMenuDropdown = styled.div<StyledContainerProps>`
top: ${(props) => `${props.position.y}px`};
transform: translateX(-50%);
width: auto;
width: 0;
height: 0;
`;
export const RecordIndexActionMenuDropdown = () => {
@ -84,6 +81,7 @@ export const RecordIndexActionMenuDropdown = () => {
))}
</DropdownMenuItemsContainer>
}
avoidPortal
/>
</StyledContainerActionMenuDropdown>
);