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:
@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user