mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +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;
|
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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user