Fixed #5254 - Calendar: When entering the time by hand into timeOnly calendar, values switch to NaN:NaN

pull/5300/head
tugcekucukoglu 2024-02-16 15:16:55 +03:00
parent 2a657bc85b
commit 0c4ef3dda9
1 changed files with 1 additions and 1 deletions

View File

@ -1810,7 +1810,7 @@ export default {
let parts = text.split(' '); let parts = text.split(' ');
if (this.timeOnly) { if (this.timeOnly) {
date = new Date(this.modelValue); date = new Date();
this.populateTime(date, parts[0], parts[1]); this.populateTime(date, parts[0], parts[1]);
} else { } else {
const dateFormat = this.datePattern; const dateFormat = this.datePattern;