Fix DatePicker parsing ISO string
parent
4edfa8a12c
commit
9814b753dc
|
@ -1271,7 +1271,7 @@ export default {
|
||||||
},
|
},
|
||||||
formatValue(value) {
|
formatValue(value) {
|
||||||
if (typeof value === 'string') {
|
if (typeof value === 'string') {
|
||||||
return value;
|
return this.dateFormat ? (isNaN(new Date(value)) ? value : this.formatDate(new Date(value), this.dateFormat)) : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
let formattedValue = '';
|
let formattedValue = '';
|
||||||
|
|
Loading…
Reference in New Issue