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

Fixed the startDate to endDate on start input #16936

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

guidari
Copy link
Contributor

@guidari guidari commented Jul 10, 2024

Closes #16734

After the upgrade from 4.6.9 to 4.6.13 in flatpickr by renovate we started to have a couple new issues in our DatePicker component.
I'm reverting the changes from this PR and fixing the issue by validating the dates.length, so the dates cannot be changed unless the user clicks or writes a date.

@riddhybansal I would love your feedback in this one, to make sure I didn't miss anything. The test you wrote is passing, so must be fine.

Changelog

Changed

  • Added a new validation inside the if clause

Testing / Reviewing

StackBlitz example that I copied to use in the storybook

  • Make sure the start input doesn't show the startDate to endDate.
  • Make sure the previous issue that adds the xx/01/2001 doesn't happen anymore

Copy link

netlify bot commented Jul 10, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit aed9aae
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/668e92f25535c20008831e6e
😎 Deploy Preview https://deploy-preview-16936--v11-carbon-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.

Copy link

netlify bot commented Jul 10, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit aed9aae
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/668e92f2a3bb820008fd4f02
😎 Deploy Preview https://deploy-preview-16936--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.

@guidari guidari marked this pull request as ready for review July 10, 2024 13:55
@guidari guidari requested a review from a team as a code owner July 10, 2024 13:55
Copy link
Contributor

@riddhybansal riddhybansal left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@riddhybansal riddhybansal added this pull request to the merge queue Jul 11, 2024
Merged via the queue into carbon-design-system:main with commit c1822dc Jul 11, 2024
22 checks passed
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.

[Bug]: DatePicker startValue is coming as a combination of both start and end dates
3 participants