react-date-range icon indicating copy to clipboard operation
react-date-range copied to clipboard

Shows random date on scroll Enabled

Open rohit-k-singh opened this issue 4 years ago • 2 comments

The Component show random date even thought the shownDate prop is passed as today's date

the shownDate is passed as prop with the value of today's date( new Date() ) and even the month and year selectors are showing proper date but the date below shows different year.

##The props I am passing with the component. <Calendar scroll={{enabled:true}} minDate={new Date()} onChange={(date) => console.log(date)} shownDate={new Date()} /> if minDate is passed then the date value shown is of year 2025 or sometimes 2041 and user cannot go beyond year 2025 or 2041. if minDate prop isn't passed then it is year 1925.

[BUG] Expected behaviour

Default date shown should be of today

Environment

Package Version: v1.4.0 React version: v17.0.2 Node version: v14.16.0 Browser: Chrome v96.0.4664.110

rohit-k-singh avatar Dec 22 '21 06:12 rohit-k-singh

##[Bug] Update If you pass the scroll property in the component then the above issue is occurring. scroll={{enabled:true}}

rohit-k-singh avatar Dec 23 '21 07:12 rohit-k-singh

##[Bug] Update If you pass the scroll property in the component then the above issue is occurring. scroll={{enabled:true}}

any solution for this if I want scroll in calendar?

kwanso-ahsaanShuja avatar Mar 22 '22 07:03 kwanso-ahsaanShuja