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] fix regression in stricter type for context menu #6197

Merged
merged 2 commits into from
Jun 1, 2023

Conversation

adidahiya
Copy link
Contributor

@adidahiya adidahiya commented Jun 1, 2023

Fix a regression in #6196, we can't require the more specific MenuContext type yet, we need to continue being compatible with the deprecated IMenuContext type in <CopyCellsMenuItem> and <TableBody> props.

It turns out that MenuContext was not exported until #6196, so it's safe to rename the class to MenuContextImpl (which will be its name in v5.0) and use MenuContext to simply be an alias for IMenuContext now. This will fix any assignability issues caused by the latest @blueprintjs/table release.

@adidahiya
Copy link
Contributor Author

rename MenuContext to MenuContextImpl

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 80410ae into develop Jun 1, 2023
@adidahiya adidahiya deleted the ad/fix-table-function-signature branch June 1, 2023 18:09
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.

1 participant