mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix date picker owner not updating its comps on iOS (#8263)
Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
This commit is contained in:
committed by
Vasil Trifonov
parent
e57d5d9da1
commit
a311a922b5
@@ -50,6 +50,9 @@ export class DatePicker extends DatePickerBase {
|
|||||||
comps.year = value.getFullYear();
|
comps.year = value.getFullYear();
|
||||||
comps.month = value.getMonth() + 1;
|
comps.month = value.getMonth() + 1;
|
||||||
comps.day = value.getDate();
|
comps.day = value.getDate();
|
||||||
|
this.year = comps.year;
|
||||||
|
this.month = comps.month;
|
||||||
|
this.day = comps.day;
|
||||||
picker.setDateAnimated(NSCalendar.currentCalendar.dateFromComponents(comps), false);
|
picker.setDateAnimated(NSCalendar.currentCalendar.dateFromComponents(comps), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user