Visitar URL original
Fix date picker owner not updating its comps on iOS (#8263) · NativeScript/NativeScript@a311a92 · GitHub
Skip to content

Commit a311a92

Browse files
bernicavtrifonov
andcommitted
Fix date picker owner not updating its comps on iOS (#8263)
Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
1 parent e57d5d9 commit a311a92

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎nativescript-core/ui/date-picker/date-picker.ios.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ export class DatePicker extends DatePickerBase {
5050
comps.year = value.getFullYear();
5151
comps.month = value.getMonth() + 1;
5252
comps.day = value.getDate();
53+
this.year = comps.year;
54+
this.month = comps.month;
55+
this.day = comps.day;
5356
picker.setDateAnimated(NSCalendar.currentCalendar.dateFromComponents(comps), false);
5457
}
5558

0 commit comments

Comments
 (0)