hypeserver / react-date-range

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

Incorrect year shown on DateRange header with scroll enabled. #342

Closed wot48 closed 4 years ago

wot48 commented 4 years ago

Subject of the issue

Incorrect year shown on DateRange header with scroll enabled when first loaded. Year shown is from minDate, not the current year.

[BUG] Bug Reproduce Steps

<DateRange scroll={{ enabled: true }} ... />

[BUG] Expected behaviour

error

Environment

Package Version: 1.0.0-beta React version: 16.12.0 Node version: v12.13.1 Browser: Chrome

onurkerimov commented 4 years ago

This issue should be resolved in the last version (1.1.0).