Return empty string if the date input doesn't parse

This commit is contained in:
Sergio Crisostomo 2017-09-27 08:42:28 +02:00
parent a65aef1a56
commit 77883b8c69

View file

@ -366,6 +366,8 @@
} else {
correctValue = formatDate(parsedDate, format);
}
} else if (!parsedDate) {
correctValue = '';
} else {
correctValue = oldValue;
}