hypeserver / react-date-range

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

if scroll.enabled===true, then DateRange won't initially show the month of selected date range! it shows Feb 1920 #339

Closed mahesha-perpetualny closed 4 years ago

mahesha-perpetualny commented 4 years ago

DateRange won't initially show the month of selected date range! it shows Feb 1920

same as https://github.com/Adphorus/react-date-range/issues/190 but for DateRange

image

[BUG] Bug Reproduce Steps

import { DateRange } from "react-date-range";

export default function dateRange() { return (<DateRange showDateDisplay={false} direction="vertical" scroll={{ enabled: true }} showMonthAndYearPickers={false} />); }

[BUG] Expected behaviour

It should show the selected Month.

Environment

Package Version:^1.0.0-beta React version:^16.12.0 Node version:6.13.7 Browser: Chrome

onurkerimov commented 4 years ago

As far as I can see the same issue does not occur in the latest version (1.0.1) I'm closing this.