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

Manually set date does not work correctly

Open sama20 opened this issue 2 years ago • 5 comments

image

The manually set date does not work not in my code neither in your doc example.

sama20 avatar Aug 15 '23 07:08 sama20

Hi

Thank you for filing this issue. I appreciate you taking the time to report this.

I have now updated the documentation on my site to better explain how the currentDate prop works. As you noted, it was not clearly explained before.

To clarify, currentDate only sets the initial calendar view that is displayed. It does not set the selected date. I realize this may have been unclear in the previous documentation, leading to confusion on the intended usage.

Please take a look at the improved documentation here and let me know if it now makes more sense how to use currentDate to open the calendar to a specific date. I'm happy to further clarify or provide examples if needed.

Thank you again for reporting this issue. Your feedback has helped improve the component documentation for both yourself and other users. Please let me know if you have any other problems or questions!

shahabyazdi avatar Sep 01 '23 08:09 shahabyazdi

Hello,

Thanks for your library.

On our case, we struggle to set the currentDate property to set the calendar view. It kept opening to the today date whatever the date we passed. We needed to set onOpenPickNewDate to false to make it work.

ygrenzinger avatar Sep 14 '23 09:09 ygrenzinger

Hello,

Thanks for your library.

On our case, we struggle to set the currentDate property to set the calendar view. It kept opening to the today date whatever the date we passed. We needed to set onOpenPickNewDate to false to make it work.

Can you provide an example of your case so that I can work on it?

shahabyazdi avatar Sep 30 '23 07:09 shahabyazdi

Hello,

I will try to find some time to create a Codepen or similar and reproduce. But we found the solution with "onOpenPickNewDate" to false :)

ygrenzinger avatar Oct 04 '23 05:10 ygrenzinger