Skip to content

Commit

Permalink
Merge pull request #151 from the-deep/feature/add-popup-direction-qui…
Browse files Browse the repository at this point in the history
…ck-action-dropdown

Add popup direction to quick action dropdown menu
  • Loading branch information
tnagorra authored May 12, 2022
2 parents 1433223 + 3282d5c commit d92d250
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/QuickActionDropdownMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export type Props = Omit<QuickActionButtonProps<undefined>, 'onClick' | 'name'>
label?: React.ReactNode;
popupClassName?: string;
popupContentClassName?: string;
popupPlacementDirection?: 'horizontal' | 'vertical';
popupMatchesParentWidth?: boolean;
persistent?: boolean;
componentRef?: React.MutableRefObject<{
Expand All @@ -29,6 +30,7 @@ function QuickActionDropdownMenu(props: Props) {
label,
variant = 'secondary',
popupClassName,
popupPlacementDirection,
popupContentClassName,
popupMatchesParentWidth,
persistent = false,
Expand Down Expand Up @@ -71,6 +73,7 @@ function QuickActionDropdownMenu(props: Props) {
show={showPopup}
elementRef={popupRef}
freeWidth={!popupMatchesParentWidth}
placementDirection={popupPlacementDirection}
>
{children}
</Popup>
Expand Down

0 comments on commit d92d250

Please sign in to comment.