Closed jhakkinen closed 11 months ago
Hi @jhakkinen.
Seems like handler for today button simply does not consider the time which is passed to the q-date component, and simply emits date value, which virtually overwrites the entire value
function setToday () {
const date = today.value
const month = daysMap.value[ getMonthHash(date) ]
if (month === void 0 || month.includes(date.day) === false) {
addToModel(date)
}
setCalendarTo(date.year, date.month)
}
This part of the code in QDate component is responsible for this glitch.
Fix will be available in Quasar v2.14.1
What happened?
When QDate's model includes both date and time information, clicking the today button sets the time to 00:00.
What did you expect to happen?
I expect the today button to only set the date to today's date and leave the time unchanged.
Reproduction URL
https://codepen.io/johnass/pen/gOqzwBX
How to reproduce?
Flavour
Quasar CLI (@quasar/cli | @quasar/app)
Areas
Components (quasar)
Platforms/Browsers
No response
Quasar info output
Relevant log output
No response
Additional context
No response