hypeserver / react-date-range

A React component for choosing dates and date ranges.
MIT License
2.57k stars 658 forks source link

Date range startDate and endDate are null but all dates are highlighted with the selected date color #573

Open keshava15 opened 2 years ago

keshava15 commented 2 years ago

Subject of the issue

Describe your issue here. Date range startDate and endDate are null but all dates are highlighted with the selected date color This is a bit confusing to users all dates are in the selected color but my start and dates are null const [state, setState] = useState([ { startDate: null, endDate: null, key: 'due', } ]);

[BUG] Bug Reproduce Steps

When start and end date are null Tell us how to reproduce this issue.

[BUG] Expected behavior

If dates are not yet selected no need to highlight all dates

Environment

Package Version: React version: Node version:

Screenshot 2022-05-26 at 4 24 46 PM

Browser:

stephaned-ev commented 2 years ago

Same problem here. I don't understand if this is a bug or if I misunderstanding how to set up an empty selection?

Edit: Similar issue here