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

[core] fix(ContextMenuPopover): clean up document handlers on close #6685

Merged
merged 5 commits into from
Jan 30, 2024

Conversation

adidahiya
Copy link
Contributor

Fixes #6684

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

  • fix(ContextMenuPopover): clean up document handlers on close to allow normal scroll interactions to resume
    • this was an unreleased regression, so the "fix" will not be included in release notes
  • feat(ContextMenuPopover): support configuration of DOM mounting / unmounting methods in imperative showContextMenu / hideContextMenu APIs
  • docs: minor improvements to overlay-based component docs (consistent formatting)

Reviewers should focus on:

Fixes the linked bug

Screenshot

Screen Recording 2024-01-30 at 8 55 29 AM

packages/core/src/common/utils/mountOptions.ts Outdated Show resolved Hide resolved
@@ -183,7 +186,7 @@ export class DrawerExample extends React.PureComponent<ExampleProps<BlueprintExa
}

const SIZES: Array<string | OptionProps> = [
{ label: "Default", value: undefined },
{ label: "Default", value: "default" },
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note that this fixes a minor React warning about a missing "key" on HTMLSelect children in this example

@adidahiya
Copy link
Contributor Author

Update packages/core/src/common/utils/mountOptions.ts

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@adidahiya adidahiya marked this pull request as ready for review January 30, 2024 15:03
@adidahiya adidahiya merged commit cbb705c into develop Jan 30, 2024
11 of 12 checks passed
@adidahiya adidahiya deleted the ad/fix-context-menu-overlay-scroll branch January 30, 2024 17:08
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.

ContextMenuPopover blocks body scrolling after closing
1 participant