react-multi-date-picker
react-multi-date-picker copied to clipboard
Manually set date does not work correctly
The manually set date does not work not in my code neither in your doc example.
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!
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.
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?
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 :)