-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Describe the bug
When using react-datepicker in date range mode, if the first date (startDate) is manually cleared (e.g., with backspace or delete), the calendar becomes unresponsive β it's no longer possible to select any date from the picker.
To Reproduce
Steps to reproduce the behavior:
Go to https://reactdatepicker.com/#example-exclude-months-in-month-picker (or any range picker example)
Select a date range (e.g. July 1 β July 10)
Manually clear the first date (start date) using backspace
Try selecting a new date from the calendar
Expected behavior
After clearing the start date, it should be possible to select a new start date from the picker as usual.
Screenshots / Video
See attached video:
Screen.Recording.2025-07-31.at.12.49.26.mov
Desktop (please complete the following information):
OS: macOS 13.6
Browser: Chrome
Version 138.0.7204.101 (
Smartphone (if applicable):
N/A β issue observed on desktop
Additional context
This issue breaks the user flow for range selection. After the first date is cleared, no date can be reselected, forcing the user to refresh the whole component.