quasar-ui-qcalendar icon indicating copy to clipboard operation
quasar-ui-qcalendar copied to clipboard

timestamp is null

Open artnova-david opened this issue 2 years ago • 1 comments

Describe the bug In the migration guide you mention that one can pass null or undefined to the modelValue:

the model property value has been renamed to modelValue (Vue 3 convention). The default has been changed to the current date. You no longer need to pass an empty string ('') for the current date, just pass null or undefined or set to parseDate(new Date()).date or today()

When passing null or undefined the methods prev(), next() and moveToToday() result in this error: TypeError: can't access property "year", timestamp is null When today() or the current date as string is passed it works fine.

To Reproduce Steps to reproduce the behavior:

  1. Pass null or undefined as initial value and use methods prev(), next() or moveToToday()

Expected behavior Update the docs or no error when passing null or undefined as initial value.

Screenshots

2022-06-08_9-08-41

Desktop

  • OS: Windows
  • Browser FireFox Developer
  • Version [Developer 102.0b4]

artnova-david avatar Jun 08 '22 07:06 artnova-david

Thanks for letting me know this. I have temporarily lost my development environment, but as soon as I am able, I will look into this. In the meantime, an empty string should work.

hawkeye64 avatar Jun 08 '22 17:06 hawkeye64