mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 17:32:36 +00:00
Fixed #5254 - Calendar: When entering the time by hand into timeOnly calendar, values switch to NaN:NaN
This commit is contained in:
parent
2a657bc85b
commit
0c4ef3dda9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue