Skip to content

Conversation

@martijnrusschen
Copy link
Member

When using selectsRange with input field changes, the preSelection state was not being updated. This caused inconsistent calendar viewport behavior when closing and reopening the datepicker after changing dates via input vs via calendar click.

The fix updates preSelection to the new startDate when processing input changes for range selection, matching the behavior of calcInitialState.

Fixes #5916

When using selectsRange with input field changes, the preSelection state
was not being updated. This caused inconsistent calendar viewport behavior
when closing and reopening the datepicker after changing dates via input
vs via calendar click.

The fix updates preSelection to the new startDate when processing input
changes for range selection, matching the behavior of calcInitialState.

Fixes #5916

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Dec 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.22%. Comparing base (de1e0c1) to head (bced65d).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6101   +/-   ##
=======================================
  Coverage   99.22%   99.22%           
=======================================
  Files          30       30           
  Lines        3620     3622    +2     
  Branches     1551     1552    +1     
=======================================
+ Hits         3592     3594    +2     
  Misses         27       27           
  Partials        1        1           

☔ 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 11aeae6 into main Dec 4, 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 Range Calendar viewport moves

2 participants