mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-13 19:02:26 +03:00
fix: fecha.parse invalid return false (#309)
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ export function formatDate (date, format) {
|
||||
|
||||
export function parseDate (value, format) {
|
||||
try {
|
||||
return fecha.parse(value, format)
|
||||
return fecha.parse(value, format) || null
|
||||
} catch (e) {
|
||||
return null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user