react-multi-date-picker icon indicating copy to clipboard operation
react-multi-date-picker copied to clipboard

Bug - Number of Months props doesn't render previous months

Open akashhartler opened this issue 3 years ago • 2 comments

Hello Shahabyazdi,

I found that if we pass the Number of months props, the picker takes the current month as of the selected date month. For eg., if I have selected a range of 11th Nov 2022 to 18th Nov 2022, then the picker will only render months from Nov. Technically it should render from the current month and not the selected dates.

If you can fix this at the earliest, it would be really helpful.

akashhartler avatar Sep 19 '22 11:09 akashhartler

Hi Please see this URL and let me know if it's work or not. https://shahabyazdi.github.io/react-multi-date-picker/other-examples/#opening-calendar-on-the-specified-date

shahabyazdi avatar Sep 19 '22 15:09 shahabyazdi

Please try this and if it's not what you want, please modify it to show the bug. https://codesandbox.io/s/vigilant-hooks-d9sd56?file=/src/App.js

shahabyazdi avatar Sep 20 '22 05:09 shahabyazdi