mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 14:01:20 +08:00
fix(datetime-util): add missing date property conditions
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user