From a311a922b5b5cba80937919dc4a95d33025ffd58 Mon Sep 17 00:00:00 2001 From: Bernardo Sanguinetti Date: Mon, 27 Jan 2020 12:46:12 -0300 Subject: [PATCH] Fix date picker owner not updating its comps on iOS (#8263) Co-authored-by: Vasil Trifonov --- nativescript-core/ui/date-picker/date-picker.ios.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nativescript-core/ui/date-picker/date-picker.ios.ts b/nativescript-core/ui/date-picker/date-picker.ios.ts index 7155a8074..f60a2f9ae 100644 --- a/nativescript-core/ui/date-picker/date-picker.ios.ts +++ b/nativescript-core/ui/date-picker/date-picker.ios.ts @@ -50,6 +50,9 @@ export class DatePicker extends DatePickerBase { comps.year = value.getFullYear(); comps.month = value.getMonth() + 1; comps.day = value.getDate(); + this.year = comps.year; + this.month = comps.month; + this.day = comps.day; picker.setDateAnimated(NSCalendar.currentCalendar.dateFromComponents(comps), false); }