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] close popovers/tooltips on ContextMenu2 opening #4735

Merged
merged 5 commits into from
May 27, 2021

Conversation

adidahiya
Copy link
Contributor

Fixes #4719

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

Add special event handling to Popover2 so that parent and child popovers/tooltips of a ContextMenu2 will get dismissed when the custom context menu is opened.

Reviewers should focus on:

No regressions

Screenshot

2021-05-26 19 04 48

@blueprint-bot
Copy link

revert tsconfig changes

Previews: documentation | landing | table

@adidahiya adidahiya merged commit 29d1161 into develop May 27, 2021
@adidahiya adidahiya deleted the ad/context-menu2-close-tooltip branch May 27, 2021 00:34
@@ -174,6 +174,7 @@ export const ContextMenu2: React.FC<ContextMenu2Props> = React.forwardRef<any, C
menu === undefined ? undefined : (
<Popover2
{...popoverProps}
autoFocus={false}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the crux of the bugfix, but it caused a regression in #4742

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.

ContextMenu2 does not dismiss tooltip on open
2 participants