fix(datetime-util): add missing date property conditions

This commit is contained in:
tobika
2016-10-01 14:32:11 +02:00
parent 0f9c307d9f
commit 2aea1cbe66

View File

@ -242,7 +242,7 @@ export function updateDate(existingData: DateTimeData, newData: any) {
return; return;
} }
} else if ((isPresent(newData.year) || isPresent(newData.hour))) { } else if ((isPresent(newData.year) || isPresent(newData.hour) || isPresent(newData.month) || isPresent(newData.day) || isPresent(newData.minute) || isPresent(newData.second))) {
// newData is from of a datetime picker's selected values // newData is from of a datetime picker's selected values
// update the existing DateTimeData data with the new values // update the existing DateTimeData data with the new values