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] fix(ContextMenu2): allow native ctx menu if content undefined #6178

Merged
merged 2 commits into from
May 24, 2023

Conversation

adidahiya
Copy link
Contributor

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

If a consumer uses the content render function API and returns undefined, ContextMenu2 would previously still swallow the event and prevent the native context menu from opening. This was undesirable in most (probably all) cases, so this PR changes behavior so that the default event handler is not prevented. Added a unit test for this behavior.

Reviewers should focus on:

No regressions in other usage of ContextMenu2

@adidahiya
Copy link
Contributor Author

[popover2] fix(ContextMenu2): allow native ctx menu if content undefined

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

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

@adidahiya
Copy link
Contributor Author

update callback deps

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

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

@adidahiya adidahiya merged commit ea367af into develop May 24, 2023
@adidahiya adidahiya deleted the ad/context-menu2-prevent-default branch May 24, 2023 18:03
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.

2 participants