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(datetimepicker): add check for mask value #3743

Merged
merged 3 commits into from
Mar 6, 2023
Merged

Conversation

davidicus
Copy link
Collaborator

Closes #3741

Summary

New check for date time mask is throwing error when hasTimeInput is used and mask is provided that does not include time. This PR puts in an additional check to ensure that there is a value before running check.

Change List (commits, features, bugs, etc)

  • Add check in our utilities file in dateTimePickerUtils.js
  • Add check in our DateTimePicker file in DateTimePickerV2WithTimeSpinner.jsx
  • Add test to ensure this functionality is covered in DateTimePickerV2.test.jsx

@davidicus davidicus requested a review from jessieyan as a code owner March 6, 2023 15:45
@davidicus
Copy link
Collaborator Author

FYI @JordanWSmith15 @navjeets

@davidicus
Copy link
Collaborator Author

The one test failure looks like a network failure. I will reset when process is finished.

@netlify
Copy link

netlify bot commented Mar 6, 2023

Deploy Preview for carbon-addons-iot-react ready!

Name Link
🔨 Latest commit d86cb01
🔍 Latest deploy log https://app.netlify.com/sites/carbon-addons-iot-react/deploys/640621bf39e90b0008fc1f8f
😎 Deploy Preview https://deploy-preview-3743--carbon-addons-iot-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 settings.

Copy link
Collaborator

@jessieyan jessieyan left a comment

Choose a reason for hiding this comment

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

The change looks good to me

@davidicus davidicus merged commit dd05de0 into master Mar 6, 2023
@davidicus davidicus deleted the dtp-mask-check-fix branch March 6, 2023 18:36
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.

3 participants