Skip to content

Commit d0b3e0c

Browse files
Alexander VakrilovSvetoslavTsenov
authored andcommitted
fix(date-picker): Date picker changed check (NativeScript#4797)
1 parent 28b6eba commit d0b3e0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tns-core-modules/ui/date-picker/date-picker.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class DatePicker extends DatePickerBase {
102102

103103
[dateProperty.setNative](value: Date) {
104104
const nativeView = this.nativeViewProtected;
105-
if (nativeView.getDayOfMonth() !== value.getDay()
105+
if (nativeView.getDayOfMonth() !== value.getDate()
106106
|| nativeView.getMonth() !== value.getMonth()
107107
|| nativeView.getYear() !== value.getFullYear()) {
108108
nativeView.updateDate(value.getFullYear(), value.getMonth(), value.getDate());

0 commit comments

Comments
 (0)