Skip to content

Commit 2aea1cb

Browse files
committedOct 1, 2016
fix(datetime-util): add missing date property conditions
1 parent 0f9c307 commit 2aea1cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/util/datetime-util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export function updateDate(existingData: DateTimeData, newData: any) {
242242
return;
243243
}
244244

245-
} else if ((isPresent(newData.year) || isPresent(newData.hour))) {
245+
} else if ((isPresent(newData.year) || isPresent(newData.hour) || isPresent(newData.month) || isPresent(newData.day) || isPresent(newData.minute) || isPresent(newData.second))) {
246246
// newData is from of a datetime picker's selected values
247247
// update the existing DateTimeData data with the new values
248248

0 commit comments

Comments
 (0)
Please sign in to comment.