quasar-ui-qcalendar
quasar-ui-qcalendar copied to clipboard
timestamp is null
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:
- 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
Desktop
- OS: Windows
- Browser FireFox Developer
- Version [Developer 102.0b4]
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.