From 0c4ef3dda977751ac22b1bac30c8e257885b9d28 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Fri, 16 Feb 2024 15:16:55 +0300 Subject: [PATCH] Fixed #5254 - Calendar: When entering the time by hand into timeOnly calendar, values switch to NaN:NaN --- components/lib/calendar/Calendar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/calendar/Calendar.vue b/components/lib/calendar/Calendar.vue index 45b15d3ab..ae06dd71b 100755 --- a/components/lib/calendar/Calendar.vue +++ b/components/lib/calendar/Calendar.vue @@ -1810,7 +1810,7 @@ export default { let parts = text.split(' '); if (this.timeOnly) { - date = new Date(this.modelValue); + date = new Date(); this.populateTime(date, parts[0], parts[1]); } else { const dateFormat = this.datePattern;