return empty strings for invalid dates instead of null
This commit is contained in:
parent
72f225e938
commit
8c16b30149
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@
|
|||
return this.internalValue.slice();
|
||||
} else {
|
||||
const isRange = this.type.includes('range');
|
||||
const val = this.internalValue.map(date => date instanceof Date ? new Date(date) : date);
|
||||
const val = this.internalValue.map(date => date instanceof Date ? new Date(date) : (date || ''));
|
||||
return (isRange || this.multiple) ? val : val[0];
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue