Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[popover2] feat(ContextMenu2): add popoverRef to popoverProps #5280

Merged
merged 2 commits into from
May 3, 2022

Conversation

dlichen
Copy link
Contributor

@dlichen dlichen commented May 3, 2022

Fixes no issue

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

adding the popoverRef to the contextMenu2 component

Reviewers should focus on:

n/a

Screenshot

No visual change

@palantirtech
Copy link
Member

Thanks for your interest in palantir/blueprint, @dlichen! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

@@ -206,6 +206,7 @@ export const ContextMenu2: React.FC<ContextMenu2Props> = React.forwardRef<any, C
rootBoundary="viewport"
renderTarget={renderTarget}
transitionDuration={popoverProps?.transitionDuration ?? 100}
popoverRef={popoverProps?.popoverRef}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need this here, it's spread by {...popoverProps} on L187 already

@@ -109,7 +109,7 @@ export interface ContextMenu2Props
/**
* A limited subset of props to forward along to the popover generated by this component.
*/
popoverProps?: IOverlayLifecycleProps & Pick<Popover2Props, "popoverClassName" | "transitionDuration">;
popoverProps?: IOverlayLifecycleProps & Pick<Popover2Props, "popoverClassName" | "transitionDuration" | "popoverRef">;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line is probably too long and is failing formatting checks. run yarn format from the root of the repo.

@adidahiya adidahiya changed the title Add popoverRef to ContextMenu2 [popover2] feat(ContextMenu2): add popoverRef to popoverProps May 3, 2022
@adidahiya adidahiya merged commit 79df460 into palantir:develop May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants