wojtekmaj / react-daterange-picker

A date range picker for your React app.
https://projects.wojtekmaj.pl/react-daterange-picker
MIT License
524 stars 64 forks source link

Range Restriction #221

Closed MetehanBass closed 1 year ago

MetehanBass commented 1 year ago

Hello Sir, is there a way I can catch the first selected date? or how can I set a limit of -30 days + 30 days on the first selected date from the calendar? thanks

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.

wojtekmaj commented 1 year ago

No, sorry, you can't get an incomplete result. Valid one or nothing. What you could do, however, is listen to the inputs higher up the DOM tree, calculate the first date yourself, and set a calculated maxDate then.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 14 days with no activity.