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: declare children prop explicitly #5261

Merged
merged 1 commit into from
Apr 21, 2022

Conversation

bradchristensen
Copy link
Contributor

Fixes #5250

Checklist

  • Includes tests - no automated tests, but checked manually against a project of my own and confirmed it works as expected when used with React 18
  • Update documentation

Changes proposed in this pull request:

This PR defines the children prop explicitly for Popover2 and Tooltip2, which is a requirement in React 18.

It looks like #5258 fixed all instances of this for function components but it didn't tackle class components.

Note that I haven't checked anything beyond Popover2/Tooltip2 - there may be other affected components, but we only use a few components from Blueprint in our project at the moment.

@palantirtech
Copy link
Member

Thanks for your interest in palantir/blueprint, @bradchristensen! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

@adidahiya adidahiya changed the title fix: declare children prop explicitly for Popover2 [popover2] fix: declare children prop explicitly Apr 21, 2022
@adidahiya adidahiya merged commit faa7b20 into palantir:develop Apr 21, 2022
@bradchristensen bradchristensen deleted the patch-1 branch April 21, 2022 21:24
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.

Getting type errors after upgrading to @types/react v18.0.0.
3 participants