Pass correct arguments to on-change callback

This commit is contained in:
Sergio Crisostomo 2018-02-11 20:46:22 +01:00
parent 21acf032ac
commit 57f0582b71
4 changed files with 94 additions and 5 deletions

View file

@ -163,6 +163,8 @@ const RANGE_FORMATTER = function(value, format) {
if (start && end) {
return formatDate(start, format) + RANGE_SEPARATOR + formatDate(end, format);
}
} else if (!Array.isArray(value) && value instanceof Date){
return formatDate(value, format);
}
return '';
};