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

DateRange: fix date selection bug when you disable secondary range #3953

Merged

Conversation

CarlosAvina
Copy link
Contributor

Summary

What changed?

Automatically select primary range if the secondaryDateValues goes undefined.

Why?

If you disable or make secondaryDateValues undefined, the DateRange will not let you select new dates since the secondary range is still selected inside the component.

Links

Screenshots

Before After
Screen.Recording.2025-01-20.at.12.47.43.p.m.mov
Screen.Recording.2025-01-20.at.12.48.35.p.m.mov

Checklist

  • Added unit tests
  • Added documentation + accessibility tests
  • Verified accessibility: keyboard & screen reader interaction
  • Checked dark mode, responsiveness, and right-to-left support
  • Checked stakeholder feedback (e.g. Gestalt designers, relevant feature teams)

@CarlosAvina CarlosAvina requested a review from a team as a code owner January 20, 2025 18:58
Copy link

netlify bot commented Jan 20, 2025

Deploy Preview for gestalt ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 9991e31
🔍 Latest deploy log https://app.netlify.com/sites/gestalt/deploys/678e9ced391a1f00086ce377
😎 Deploy Preview https://deploy-preview-3953--gestalt.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.

@AlbertCarreras AlbertCarreras added the patch release Patch release label Jan 21, 2025
@AlbertCarreras AlbertCarreras changed the title DateRange: fix date selection bug when you disable secondary range (web) DateRange: fix date selection bug when you disable secondary range Jan 22, 2025
@AlbertCarreras AlbertCarreras merged commit ea4f156 into pinterest:master Jan 22, 2025
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch release Patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants