Skip to content

fix(datePicker): fix toast error in datePicker#5133

Open
somramnani wants to merge 1 commit intodevelopmentfrom
som-fix/date-picker-error
Open

fix(datePicker): fix toast error in datePicker#5133
somramnani wants to merge 1 commit intodevelopmentfrom
som-fix/date-picker-error

Conversation

@somramnani
Copy link
Copy Markdown
Contributor

Description

Fixed an issue where the warning toast would continue to appear after selecting a past date and then clearing the input using the clear (X) button. The date picker state is now properly reset, preventing the error from persisting.

Screen.Recording.2026-04-10.at.5.51.05.PM.mov

Related PRS (if any):

This frontend PR is related to the development backend PR.
This PR is related to #4428

Main changes explained:

  • CPDashboard.jsx: Updated handleDateChange function .

How to test:

  1. Checkout this branch.
  2. Run npm install and start the app locally.
  3. Clear site data/cache.
  4. Log in as an admin user.
  5. Navigate to: /communityportal
  6. Verify:
    • Select a past date in the “Ending After” date picker and confirm that the warning appears.
    • Click the clear (X) button and ensure the date is reset.
    • Select a valid future date and verify that no error message persists.

Screenshots or videos of changes:

Screen.Recording.2026-04-10.at.6.04.28.PM.mov

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 10, 2026

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit f73d578
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/69d97707b208e5000878021c
😎 Deploy Preview https://deploy-preview-5133--highestgoodnetwork-dev.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 project configuration.

@somramnani somramnani added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label Apr 10, 2026
@sonarqubecloud
Copy link
Copy Markdown

@somramnani somramnani changed the title fix(datePicker): fix error in datePicker fix(datePicker): fix toast error in datePicker Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant