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(TimePicker): guard against null pointer #14506

Merged
merged 4 commits into from
Aug 25, 2023

Conversation

tw15egan
Copy link
Collaborator

@tw15egan tw15egan commented Aug 23, 2023

Closes #14498

Check if an item exists before cloning. Also fixes a styling issue when only TimePickerSelect is present.

Changelog

New

  • Add if check to verify item exists

Changed

  • fixed margin-left on TimePickerSelect

Testing / Reviewing

Ensure the test story does not crash. Set it to false and ensure the select appears as expected. Will remove test story before merging

@netlify
Copy link

netlify bot commented Aug 23, 2023

Deploy Preview for carbon-components-react ready!

Name Link
🔨 Latest commit 033f40b
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/64e8c13faa074e0008ec5178
😎 Deploy Preview https://deploy-preview-14506--carbon-components-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Aug 23, 2023

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 033f40b
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/64e8c13f2b16b7000823bc8f
😎 Deploy Preview https://deploy-preview-14506--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@tay1orjones tay1orjones left a comment

Choose a reason for hiding this comment

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

Test story looks good locally 👍

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Aug 24, 2023
@tw15egan tw15egan enabled auto-merge August 25, 2023 15:22
@tw15egan tw15egan added this pull request to the merge queue Aug 25, 2023
Merged via the queue into carbon-design-system:main with commit 86ece85 Aug 25, 2023
@tw15egan tw15egan deleted the time-picker-fix branch August 25, 2023 15:54
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.

[Bug]: TimePicker crashes with null pointer if conditional TimePickerSelect child
3 participants