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

fix(OverflowMenu): resolve child.props NPE #7838

Merged

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Feb 18, 2021

Closes #7837

This PR adds a check for overflow menu children props before calling child.props.closeMenu to avoid type errors when the props object is not found

Testing / Reviewing

Confirm that the component will still render even when its children do not contain props

@netlify
Copy link

netlify bot commented Feb 18, 2021

Deploy preview for carbon-elements ready!

Built with commit 09a02d5

https://deploy-preview-7838--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Feb 18, 2021

Deploy preview for carbon-components-react ready!

Built with commit 09a02d5

https://deploy-preview-7838--carbon-components-react.netlify.app

Copy link
Member

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

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

LGTM 👍 ✅

@kodiakhq kodiakhq bot merged commit 752a1fe into carbon-design-system:master Feb 18, 2021
This was referenced Feb 18, 2021
@emyarod emyarod deleted the 7837-avoid-npe-overflowmenu branch February 19, 2021 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Having text wrapped inside OverflowMenu causes rendering to fail when minifying due to child props mapping
3 participants