Description
The Vanilla Calendar Pro widget does not show the correct date when the JS Object Date is used. It works seamlessly with the String-format-
Steps to reproduce
- Use the latest version of Vanilla Calendar Pro.
- Add
selectedDates: [date] to the settings. date must be a JS Date object.
- Use
date.toDateString() and log to the console to see the expected date
- Compare the log with the selected date in the widget. They are not the same
Expected behavior
The two dates should be the same.
CodeSandbox example
JSFiddle:
https://jsfiddle.net/ganymede_0g/27s9tbrq/4/
CodeSandbox:
https://codesandbox.io/p/sandbox/gq69jn
Screenshots (optional)
Works very nicely apart from this bug. Thank you a lot for this great tool!
Description
The Vanilla Calendar Pro widget does not show the correct date when the JS Object Date is used. It works seamlessly with the String-format-
Steps to reproduce
selectedDates: [date]to the settings.datemust be a JS Date object.date.toDateString()and log to the console to see the expected dateExpected behavior
The two dates should be the same.
CodeSandbox example
JSFiddle:
https://jsfiddle.net/ganymede_0g/27s9tbrq/4/
CodeSandbox:
https://codesandbox.io/p/sandbox/gq69jn
Screenshots (optional)
Works very nicely apart from this bug. Thank you a lot for this great tool!