Skip to content

Commit

Permalink
fix(datetime-util): add missing date property conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
tobika committed Oct 1, 2016
1 parent 0f9c307 commit 2aea1cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/datetime-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export function updateDate(existingData: DateTimeData, newData: any) {
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
// update the existing DateTimeData data with the new values

Expand Down

0 comments on commit 2aea1cb

Please sign in to comment.