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

[table] feat: migrate to ContextMenu2 #5489

Merged
merged 4 commits into from
Aug 8, 2022
Merged

Conversation

adidahiya
Copy link
Contributor

@adidahiya adidahiya commented Aug 8, 2022

Fixes #1121

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

  • Create new private @blueprintjs/table components which use ContextMenu2 instead of ContextMenuTarget
    • HeaderCell2
    • TableBody2 (used in Table2)
  • Create new public @blueprintjs/table components
    • RowHeaderCell2
  • Deprecate @blueprintjs/table components
    • RowHeaderCell
  • Fix ContextMenu2 so that it properly opens a menu and provides the mouse event when using the content function API (used in TableBody2)

Reviewers should focus on:

The ContextMenu2 bugfix in @blueprintjs/popover2 package

Screenshot

image

@blueprint-bot
Copy link

Fix setState() within render() stack

Previews: documentation | landing | table | demo

@blueprint-bot
Copy link

migrate to v2 APIs

Previews: documentation | landing | table | demo

@adidahiya adidahiya changed the title [table] feat: RowHeaderCell2, TableBody2 [table] feat: migrate to ContextMenu2 Aug 8, 2022
@adidahiya adidahiya merged commit fa4c426 into develop Aug 8, 2022
@adidahiya adidahiya deleted the ad/table2-context-menu2 branch August 8, 2022 17:38
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.

renderBodyContextMenu gets rendered outside of React root
2 participants