Skip to content

Conversation

@balajis-qb
Copy link
Contributor

@balajis-qb balajis-qb commented Jun 23, 2025

Closes #5571 & #5514

Problem
As mentioned in the linked tickets, the input value is not removing the invalid value entered by the users on blur of the date input (when the calendar open state is false). Even-though we're not emitting a invalid value onChange, but still the input value is not reset back to the previously entered valid value. This happens only when the calendar popup is open. In this PR, I reset the input value on blur, so that it's value is properly reset with the previously entered valid value.

Changes

  • Reset the input value on Blur of the date input

Contribution checklist

  • I have followed the contributing guidelines.
  • I have added sufficient test coverage for my changes.
  • I have formatted my code with Prettier and checked for linting issues with ESLint for code readability.

@codecov
Copy link

codecov bot commented Jun 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.14%. Comparing base (bb8049c) to head (58f4afc).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5703   +/-   ##
=======================================
  Coverage   97.14%   97.14%           
=======================================
  Files          30       30           
  Lines        3364     3367    +3     
  Branches     1420     1420           
=======================================
+ Hits         3268     3271    +3     
  Misses         94       94           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@martijnrusschen martijnrusschen merged commit 79c1702 into Hacker0x01:main Jun 23, 2025
6 checks passed
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.

date value not reflecting correctly onBlur after clearing input and manually typing in new value

2 participants